﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:System="clr-namespace:System;assembly=mscorlib"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                    xmlns:sys="clr-namespace:System;assembly=mscorlib"
                    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                    xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options"
                    xmlns:vsm="clr-namespace:System.Windows;assembly=PresentationFramework"
                    mc:Ignorable="d">

    <!-- Global Settings-->
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="Brushes.xaml" />
        <ResourceDictionary Source="Fonts.xaml" />
    </ResourceDictionary.MergedDictionaries>

    <!--DataPagerPageButtonImageButton Style-->
    <Style x:Key="ImageButton"
           TargetType="Button">
        <Setter Property="SnapsToDevicePixels"
                Value="true" />
        <Setter Property="Background"
                Value="{StaticResource GrayBrush3}" />
        <Setter Property="Foreground"
                Value="{StaticResource TextBrush}" />
        <Setter Property="Padding"
                Value="3" />
        <Setter Property="BorderThickness"
                Value="1" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition From="Normal"
                                                          GeneratedDuration="0:0:0.3"
                                                          To="MouseOver" />
                                    <vsm:VisualTransition From="MouseOver"
                                                          GeneratedDuration="0:0:0.3"
                                                          To="Normal" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="ellipse">
                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                  Value="0.6" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="contentPresenter">
                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                  Value="0.4" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="ellipse">
                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                  Value="0.4" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="contentPresenter">
                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                  Value="0.2" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="ellipse">
                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                  Value="0.2" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="FocusStates">
                                <vsm:VisualState x:Name="Focused">
                                    <Storyboard />
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Unfocused" />
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <ContentPresenter x:Name="contentPresenter"
                                          ContentTemplate="{TemplateBinding ContentTemplate}"
                                          Content="{TemplateBinding Content}"
                                          HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                          Margin="{TemplateBinding Padding}"
                                          VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                          RenderOptions.ClearTypeHint="Enabled" />
                        <Ellipse x:Name="ellipse"
                                 Stroke="{StaticResource CheckBoxMouseOverBrush}"
                                 Opacity="0.3"
                                 Fill="Transparent" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--DataGridCell Style-->
    <Style TargetType="DataGridCell"
           x:Key="DefaultDataGridCellStyle">
        <Setter Property="SnapsToDevicePixels"
                Value="true" />
        <Setter Property="Background"
                Value="Transparent" />
        <Setter Property="HorizontalContentAlignment"
                Value="Stretch" />
        <Setter Property="VerticalContentAlignment"
                Value="Stretch" />
        <Setter Property="Foreground"
                Value="{StaticResource TextBrush}" />
        <Setter Property="FontFamily"
                Value="{StaticResource ContentFontFamily}" />
        <Setter Property="FontSize"
                Value="{StaticResource ContentFontSize}" />
        <Setter Property="IsTabStop"
                Value="True" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="DataGridCell">
                    <Grid x:Name="Root"
                          Background="{TemplateBinding Background}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CurrentStates">
                                <vsm:VisualState x:Name="Regular" />
                                <vsm:VisualState x:Name="Current">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="FocusVisual"
                                                         From="0.3" />
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="SelectedRectangle">
                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                  Value="0.3" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="ValidationStates">
                                <vsm:VisualState x:Name="Valid" />
                                <vsm:VisualState x:Name="InvalidFocused">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="InvalidVisualElement" />
                                        <ColorAnimation Duration="0"
                                                        To="{StaticResource WhiteColor}"
                                                        Storyboard.TargetProperty="Fill.Color"
                                                        Storyboard.TargetName="FocusVisual" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="InvalidUnfocused">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="InvalidVisualElement" />
                                        <ColorAnimation Duration="0"
                                                        To="{StaticResource WhiteColor}"
                                                        Storyboard.TargetProperty="Fill.Color"
                                                        Storyboard.TargetName="FocusVisual" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="SelectedRectangle">
                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                  Value="0.6" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Normal" />
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="SelectionStates">
                                <vsm:VisualState x:Name="Unselected" />
                                <vsm:VisualState x:Name="Selected" />
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="InteractionStates">
                                <vsm:VisualState x:Name="Editing" />
                                <vsm:VisualState x:Name="Display" />
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="FocusVisual"
                                   HorizontalAlignment="Stretch"
                                   Fill="Transparent"
                                   IsHitTestVisible="False"
                                   Opacity="0"
                                   StrokeThickness="1"
                                   VerticalAlignment="Stretch">
                            <Rectangle.Stroke>
                                <SolidColorBrush Color="{StaticResource Gray2}"
                                                 PresentationOptions:Freeze="True" />
                            </Rectangle.Stroke>
                        </Rectangle>
                        <Rectangle x:Name="SelectedRectangle"
                                   Grid.Column="0"
                                   IsHitTestVisible="False"
                                   Opacity="0"
                                   Fill="{StaticResource NormalBrush}" />
                        <Rectangle x:Name="MouseOverRectangle"
                                   Grid.Column="0"
                                   IsHitTestVisible="False"
                                   Opacity="0"
                                   Fill="{StaticResource ItemSelectedBrush}" />
                        <ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}"
                                          Content="{TemplateBinding Content}"
                                          HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                          Margin="1,0,0,0"
                                          VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                          Grid.ColumnSpan="2"
                                          RenderOptions.ClearTypeHint="Enabled" />
                        <Rectangle x:Name="InvalidVisualElement"
                                   HorizontalAlignment="Stretch"
                                   IsHitTestVisible="False"
                                   Opacity="0"
                                   Stroke="{StaticResource ControlsValidationBrush}"
                                   StrokeThickness="1"
                                   VerticalAlignment="Stretch" />
                        <Rectangle x:Name="RightGridLine"
                                   Grid.Column="1"
                                   VerticalAlignment="Stretch"
                                   Width="1" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--DataGridColumnHeader Style-->
    <Style TargetType="DataGridColumnHeader"
           x:Key="DefaultDataGridColumnHeaderStyle">
        <Setter Property="SnapsToDevicePixels"
                Value="true" />
        <Setter Property="Foreground"
                Value="{StaticResource TextBrush}" />
        <Setter Property="FontFamily"
                Value="{StaticResource ContentFontFamily}" />
        <Setter Property="FontSize"
                Value="{StaticResource ControlTitleFontSize}" />
        <Setter Property="HorizontalContentAlignment"
                Value="Left" />
        <Setter Property="VerticalContentAlignment"
                Value="Center" />
        <Setter Property="IsTabStop"
                Value="False" />
        <Setter Property="SeparatorBrush"
                Value="{StaticResource SeperatorBrush}" />
        <Setter Property="Padding"
                Value="4,5,4,5" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="DataGridColumnHeader">
                    <Border BorderBrush="Black"
                            BorderThickness="0,1">
                        <Border.Resources>
                            <Style x:Key="ColumnHeaderGripperStyle"
                                   TargetType="Thumb">
                                <Setter Property="Width"
                                        Value="2" />
                                <Setter Property="Background"
                                        Value="Transparent" />
                                <Setter Property="Cursor"
                                        Value="SizeWE" />
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="Thumb">
                                            <Border Padding="{TemplateBinding Padding}"
                                                    Background="{TemplateBinding Background}" />
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </Border.Resources>

                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="MouseOverRectangle">
                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                  Value="0.5" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="MouseOverLeftRightSeperator">
                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="PressedRectangle">
                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="PressedLeftRightSeperator">
                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="SortStates">
                                <vsm:VisualState x:Name="Unsorted" />
                                <vsm:VisualState x:Name="SortAscending">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="1.0"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="SortIcon" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="SortDescending">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="1.0"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="SortIcon" />
                                        <DoubleAnimation Duration="0"
                                                         To="-.9"
                                                         Storyboard.TargetProperty="(RenderTransform).ScaleY"
                                                         Storyboard.TargetName="SortIcon" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>

                        <Grid x:Name="Root"
                              Height="30">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Rectangle x:Name="BackgroundRectangle"
                                       Grid.ColumnSpan="2"
                                       Stretch="Fill"
                                       Fill="{StaticResource WhiteBrush}" />
                            <Rectangle x:Name="MouseOverRectangle"
                                       Grid.ColumnSpan="2"
                                       Opacity="0">
                                <Rectangle.Fill>
                                    <SolidColorBrush Color="{StaticResource Gray8}"
                                                     PresentationOptions:Freeze="True" />
                                </Rectangle.Fill>
                            </Rectangle>
                            <Rectangle x:Name="PressedRectangle"
                                       Grid.ColumnSpan="2"
                                       Opacity="0">
                                <Rectangle.Fill>
                                    <SolidColorBrush Color="{StaticResource Gray8}"
                                                     PresentationOptions:Freeze="True" />
                                </Rectangle.Fill>
                            </Rectangle>
                            <Grid HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                  Margin="{TemplateBinding Padding}"
                                  VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="Auto" />
                                </Grid.ColumnDefinitions>
                                <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
                                                  VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                                  HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                                  RenderOptions.ClearTypeHint="Enabled" />
                                <Path x:Name="SortIcon"
                                      Grid.Column="1"
                                      Data="F1 M -5.215,6.099L 5.215,6.099L 0,0L -5.215,6.099 Z "
                                      Fill="{StaticResource GrayBrush3}"
                                      HorizontalAlignment="Left"
                                      Margin="4,0,0,0"
                                      Opacity="0"
                                      RenderTransformOrigin=".5,.5"
                                      Stretch="Uniform"
                                      VerticalAlignment="Center"
                                      Width="8">
                                    <Path.RenderTransform>
                                        <ScaleTransform ScaleY=".9"
                                                        ScaleX=".9" />
                                    </Path.RenderTransform>
                                </Path>
                            </Grid>
                            <Rectangle x:Name="VerticalSeparator"
                                       Grid.Column="1"
                                       Fill="{TemplateBinding SeparatorBrush}"
                                       Visibility="{TemplateBinding SeparatorVisibility}"
                                       VerticalAlignment="Stretch"
                                       Width="1"
                                       Opacity="0" />
                            <Border x:Name="MouseOverLeftRightSeperator"
                                    Grid.ColumnSpan="2"
                                    BorderThickness="1,0"
                                    BorderBrush="{StaticResource SeperatorBrush}"
                                    Margin="-1,0,0,0"
                                    Opacity="0" />
                            <Border x:Name="PressedLeftRightSeperator"
                                    Grid.ColumnSpan="2"
                                    Opacity="0"
                                    BorderBrush="{StaticResource SeperatorBrush}"
                                    BorderThickness="1,0"
                                    Margin="-1,0,0,0" />
                            <Thumb x:Name="PART_LeftHeaderGripper"
                                   Grid.RowSpan="2"
                                   Grid.Column="2"
                                   HorizontalAlignment="Left"
                                   Style="{StaticResource ColumnHeaderGripperStyle}" />
                            <Thumb x:Name="PART_RightHeaderGripper"
                                   Grid.RowSpan="2"
                                   Grid.Column="2"
                                   HorizontalAlignment="Right"
                                   Style="{StaticResource ColumnHeaderGripperStyle}" />
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--DataGridRowHeader Style-->
    <Style TargetType="DataGridRowHeader"
           x:Key="DefaultDataGridRowHeaderStyle">
        <Setter Property="SnapsToDevicePixels"
                Value="true" />
        <Setter Property="Background"
                Value="{StaticResource TransparentLightLightBrush}" />
        <Setter Property="Foreground"
                Value="{StaticResource TextBrush}" />
        <Setter Property="IsTabStop"
                Value="False" />
        <Setter Property="SeparatorBrush"
                Value="{StaticResource WhiteBrush}" />
        <Setter Property="SeparatorVisibility"
                Value="Collapsed" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="DataGridRowHeader">
                    <Grid x:Name="Root">
                        <Grid.Resources>
                            <Style x:Key="RowHeaderGripperStyle"
                                   TargetType="Thumb">
                                <Setter Property="Height"
                                        Value="Auto" />
                                <Setter Property="Width"
                                        Value="Auto" />
                                <Setter Property="Background"
                                        Value="Transparent" />
                                <Setter Property="Cursor"
                                        Value="SizeNS" />
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="Thumb">
                                            <Border Padding="{TemplateBinding Padding}"
                                                    Background="{TemplateBinding Background}" />
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </Grid.Resources>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*" />
                            <RowDefinition Height="*" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>

                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="MouseOverRectangle">
                                            <EasingDoubleKeyFrame KeyTime="0:0:0.1"
                                                                  Value="0.695" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0"
                                                         To="0"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="CurrentRowGlyph" />
                                        <DoubleAnimation Duration="0"
                                                         To="0"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="EditingRowGlyph" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="MouseOver_CurrentRow_Selected">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="MouseOverRectangle">
                                            <EasingDoubleKeyFrame KeyTime="0:0:0.1"
                                                                  Value="0.695" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="CurrentRowGlyph" />
                                        <DoubleAnimation Duration="0"
                                                         To="0"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="EditingRowGlyph" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Normal_CurrentRow">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="CurrentRowGlyph" />
                                        <DoubleAnimation Duration="0"
                                                         To="0"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="EditingRowGlyph" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Normal_Selected">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="SelectedRectangle">
                                            <EasingDoubleKeyFrame KeyTime="0:0:0.1"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <DoubleAnimation Duration="0"
                                                         To="0"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="CurrentRowGlyph" />
                                        <DoubleAnimation Duration="0"
                                                         To="0"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="EditingRowGlyph" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Normal_EditingRow">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="CurrentRowGlyph" />
                                        <DoubleAnimation Duration="0"
                                                         To="0"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="EditingRowGlyph" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="ValidationStates">
                                <vsm:VisualState x:Name="Valid" />
                                <vsm:VisualState x:Name="InvalidFocused">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="0"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="BackgroundRectangle" />
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="RowInvalidVisualElement" />
                                        <ColorAnimation Duration="0"
                                                        To="{StaticResource ValidationColor5}"
                                                        Storyboard.TargetProperty="(Fill).(GradientStops)[0].Color"
                                                        Storyboard.TargetName="CurrentRowGlyph" />
                                        <ColorAnimation Duration="0"
                                                        To="{StaticResource ValidationColor5}"
                                                        Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)"
                                                        Storyboard.TargetName="CurrentRowGlyph" />
                                        <ColorAnimation Duration="0"
                                                        To="{StaticResource ValidationColor5}"
                                                        Storyboard.TargetProperty="(Fill).(GradientStops)[0].Color"
                                                        Storyboard.TargetName="EditingRowGlyph" />
                                        <ColorAnimation Duration="0"
                                                        To="{StaticResource ValidationColor5}"
                                                        Storyboard.TargetProperty="(Fill).(GradientStops)[1].Color"
                                                        Storyboard.TargetName="EditingRowGlyph" />
                                        <ColorAnimation Duration="0"
                                                        To="{StaticResource ValidationColor5}"
                                                        Storyboard.TargetProperty="(Fill).(GradientStops)[2].Color"
                                                        Storyboard.TargetName="EditingRowGlyph" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="InvalidUnfocused">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="0"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="BackgroundRectangle" />
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="RowInvalidVisualElement" />
                                        <ColorAnimation Duration="0"
                                                        To="{StaticResource ValidationColor5}"
                                                        Storyboard.TargetProperty="(Fill).(GradientStops)[0].Color"
                                                        Storyboard.TargetName="CurrentRowGlyph" />
                                        <ColorAnimation Duration="0"
                                                        To="{StaticResource ValidationColor5}"
                                                        Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)"
                                                        Storyboard.TargetName="CurrentRowGlyph" />
                                        <ColorAnimation Duration="0"
                                                        To="{StaticResource ValidationColor5}"
                                                        Storyboard.TargetProperty="(Fill).(GradientStops)[0].Color"
                                                        Storyboard.TargetName="EditingRowGlyph" />
                                        <ColorAnimation Duration="0"
                                                        To="{StaticResource ValidationColor5}"
                                                        Storyboard.TargetProperty="(Fill).(GradientStops)[1].Color"
                                                        Storyboard.TargetName="EditingRowGlyph" />
                                        <ColorAnimation Duration="0"
                                                        To="{StaticResource ValidationColor5}"
                                                        Storyboard.TargetProperty="(Fill).(GradientStops)[2].Color"
                                                        Storyboard.TargetName="EditingRowGlyph" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Border BorderBrush="{StaticResource WhiteBrush}"
                                BorderThickness="1,0,1,0"
                                Grid.ColumnSpan="2"
                                Grid.RowSpan="3">
                            <Grid>
                                <Rectangle x:Name="RowInvalidVisualElement"
                                           Grid.ColumnSpan="2"
                                           Fill="{StaticResource ValidationSummaryFillBrush2}"
                                           Opacity="0"
                                           Grid.RowSpan="3"
                                           Stretch="Fill" />
                                <Rectangle x:Name="SelectedRectangle"
                                           IsHitTestVisible="False"
                                           Opacity="0"
                                           Fill="{StaticResource ItemSelectedBrush}"
                                           Grid.ColumnSpan="2"
                                           Grid.RowSpan="3"
                                           Grid.Column="0" />
                                <Rectangle x:Name="MouseOverRectangle"
                                           IsHitTestVisible="False"
                                           Opacity="0"
                                           Fill="{StaticResource ItemSelectedBrush}"
                                           Grid.ColumnSpan="2"
                                           Grid.RowSpan="3"
                                           Grid.Column="0" />
                            </Grid>
                        </Border>
                        <Rectangle x:Name="HorizontalSeparator"
                                   Grid.ColumnSpan="2"
                                   Fill="{TemplateBinding SeparatorBrush}"
                                   HorizontalAlignment="Stretch"
                                   Height="1"
                                   Margin="1,0,1,0"
                                   Grid.Row="2"
                                   Visibility="{TemplateBinding SeparatorVisibility}" />
                        <ContentPresenter Content="{TemplateBinding Content}"
                                          Grid.Column="1"
                                          HorizontalAlignment="Center"
                                          Grid.RowSpan="2"
                                          VerticalAlignment="Center"
                                          RenderOptions.ClearTypeHint="Enabled" />
                        <Path x:Name="CurrentRowGlyph"
                              Data="F1 M 511.047,352.682L 511.047,342.252L 517.145,347.467L 511.047,352.682 Z "
                              HorizontalAlignment="Center"
                              Height="10"
                              Margin="8,0,8,0"
                              Opacity="0"
                              Grid.RowSpan="2"
                              Stretch="Fill"
                              VerticalAlignment="Center"
                              Width="6">
                            <Path.Fill>
                                <LinearGradientBrush EndPoint="0,1.75"
                                                     StartPoint="0,-0.150000005960464">
                                    <LinearGradientBrush.RelativeTransform>
                                        <MatrixTransform />
                                    </LinearGradientBrush.RelativeTransform>
                                    <GradientStop Color="{StaticResource AccentColorBlue}"
                                                  Offset="0" />
                                    <GradientStop Color="{StaticResource AccentColorLightBlue}"
                                                  Offset="1" />
                                </LinearGradientBrush>
                            </Path.Fill>
                        </Path>
                        <Path x:Name="EditingRowGlyph"
                              Fill="{StaticResource HighlightLightBrush}"
                              Data="F1 M 511.047,352.682L 511.047,342.252L 517.145,347.467L 511.047,352.682 Z "
                              HorizontalAlignment="Center"
                              Height="10"
                              Margin="8,0,8,0"
                              Opacity="0"
                              Grid.RowSpan="2"
                              Stretch="Fill"
                              VerticalAlignment="Center"
                              Width="6" />
                        <Thumb x:Name="PART_TopHeaderGripper"
                               VerticalAlignment="Top"
                               Grid.ColumnSpan="2"
                               Grid.Row="2"
                               Height="1"
                               Style="{StaticResource RowHeaderGripperStyle}" />
                        <Thumb x:Name="PART_BottomHeaderGripper"
                               VerticalAlignment="Bottom"
                               Height="1"
                               Grid.ColumnSpan="2"
                               Grid.Row="2"
                               Style="{StaticResource RowHeaderGripperStyle}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--DataGridRow Style-->
    <Style TargetType="DataGridRow"
           x:Key="DefaultDataGridRowStyle">
        <Setter Property="SnapsToDevicePixels"
                Value="true" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="DataGridRow">
                    <SelectiveScrollingGrid x:Name="Root">
                        <SelectiveScrollingGrid.Resources>
                            <Storyboard x:Key="DetailsVisibleTransition">
                                <DoubleAnimation Duration="00:00:0.1"
                                                 Storyboard.TargetProperty="ContentHeight"
                                                 Storyboard.TargetName="DetailsPresenter" />
                            </Storyboard>
                        </SelectiveScrollingGrid.Resources>
                        <SelectiveScrollingGrid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="*" />
                        </SelectiveScrollingGrid.ColumnDefinitions>
                        <SelectiveScrollingGrid.RowDefinitions>
                            <RowDefinition Height="*" />
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="Auto" />
                        </SelectiveScrollingGrid.RowDefinitions>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="Normal_AlternatingRow">
                                    <Storyboard />
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="MouseOverRectangle">
                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                  Value="0.695" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Normal_Selected">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="SelectedRectangle">
                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="MouseOver_Selected">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="MouseOverRectangle">
                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                  Value="0.695" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Unfocused_Selected">
                                    <Storyboard />
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="ValidationStates">
                                <vsm:VisualState x:Name="Valid" />
                                <vsm:VisualState x:Name="InvalidFocused">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="InvalidVisualElement" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="InvalidUnfocused">
                                    <Storyboard>
                                        <!--<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="InvalidVisualElement"/>-->
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="SelectedRectangle"
                                   IsHitTestVisible="False"
                                   Opacity="0"
                                   Fill="{StaticResource ItemSelectedBrush}"
                                   Grid.Column="0"
                                   Grid.ColumnSpan="2"
                                   Grid.RowSpan="2" />
                        <Rectangle x:Name="MouseOverRectangle"
                                   IsHitTestVisible="False"
                                   Opacity="0"
                                   Fill="{StaticResource ItemSelectedBrush}"
                                   Grid.ColumnSpan="2"
                                   Grid.RowSpan="2" />
                        <DataGridRowHeader x:Name="RowHeader"
                                           Grid.RowSpan="2"
                                           SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical"
                                           Visibility="{Binding RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}, Path=HeadersVisibility, Converter={x:Static DataGrid.HeadersVisibilityConverter}, ConverterParameter={x:Static DataGridHeadersVisibility.Row}}" />
                        <DataGridCellsPresenter x:Name="CellsPresenter"
                                                Grid.Column="1"
                                                ItemsPanel="{TemplateBinding ItemsPanel}"
                                                SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
                        <DataGridDetailsPresenter x:Name="DetailsPresenter"
                                                  Grid.Column="1"
                                                  Grid.Row="1"
                                                  SelectiveScrollingGrid.SelectiveScrollingOrientation="{Binding RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}, Path=AreRowDetailsFrozen, Converter={x:Static DataGrid.RowDetailsScrollingConverter}, ConverterParameter={x:Static SelectiveScrollingOrientation.Vertical}}"
                                                  Visibility="{TemplateBinding DetailsVisibility}" />
                        <Rectangle x:Name="BottomGridLine"
                                   Grid.Column="1"
                                   HorizontalAlignment="Stretch"
                                   Height="1"
                                   Grid.Row="2"
                                   IsHitTestVisible="False" />
                    </SelectiveScrollingGrid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--DataGrid Style-->
    <Style TargetType="DataGrid"
           x:Key="DefaultDataGridStyle">
        <Setter Property="SnapsToDevicePixels"
                Value="true" />
        <Setter Property="Foreground"
                Value="{StaticResource TextBrush}" />
        <Setter Property="FontFamily"
                Value="{StaticResource ContentFontFamily}" />
        <Setter Property="FontSize"
                Value="{StaticResource ContentFontSize}" />
        <Setter Property="Background"
                Value="{StaticResource WhiteColorBrush}" />
        <Setter Property="BorderBrush"
                Value="{StaticResource ThumbBrush}" />
        <Setter Property="BorderThickness"
                Value="0" />
        <Setter Property="RowDetailsVisibilityMode"
                Value="VisibleWhenSelected" />
        <Setter Property="ScrollViewer.CanContentScroll"
                Value="True" />
        <Setter Property="ScrollViewer.PanningMode"
                Value="Both" />
        <Setter Property="Stylus.IsFlicksEnabled"
                Value="False" />
        <Setter Property="RowBackground"
                Value="Transparent" />
        <Setter Property="AlternatingRowBackground"
                Value="Transparent" />
        <Setter Property="HorizontalScrollBarVisibility"
                Value="Auto" />
        <Setter Property="VerticalScrollBarVisibility"
                Value="Auto" />
        <Setter Property="GridLinesVisibility"
                Value="None" />
        <Setter Property="HorizontalGridLinesBrush"
                Value="{StaticResource GrayBrush2}" />
        <Setter Property="VerticalGridLinesBrush"
                Value="{StaticResource GrayBrush2}" />
        <Setter Property="IsTabStop"
                Value="True" />
        <Setter Property="DropLocationIndicatorStyle">
            <Setter.Value>
                <Style TargetType="Separator">
                    <Setter Property="Background"
                            Value="{StaticResource GrayBrush3}" />
                    <Setter Property="Width"
                            Value="2" />
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Separator">
                                <Rectangle Fill="{TemplateBinding Background}"
                                           Height="{TemplateBinding Height}"
                                           Width="{TemplateBinding Width}" />
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="DataGrid">
                    <Grid Background="{TemplateBinding Background}">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="DisabledVisualElement" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Border BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}">
                            <ScrollViewer x:Name="DG_ScrollViewer"
                                          Focusable="False">
                                <ScrollViewer.Template>
                                    <ControlTemplate TargetType="ScrollViewer">
                                        <Grid x:Name="Root"
                                              Background="{TemplateBinding Background}">
                                            <Grid.Resources>
                                                <ControlTemplate x:Key="TopLeftHeaderTemplate"
                                                                 TargetType="DataGridColumnHeader">
                                                    <Grid x:Name="Root">
                                                        <Grid.RowDefinitions>
                                                            <RowDefinition />
                                                            <RowDefinition />
                                                            <RowDefinition Height="Auto" />
                                                        </Grid.RowDefinitions>
                                                        <Border BorderBrush="{StaticResource SeperatorBrush}"
                                                                Background="{StaticResource WhiteBrush}"
                                                                Grid.RowSpan="2" />
                                                        <Rectangle Fill="{StaticResource GrayBrush4}"
                                                                   Height="1"
                                                                   Grid.RowSpan="2"
                                                                   StrokeThickness="1"
                                                                   VerticalAlignment="Bottom"
                                                                   Width="Auto"
                                                                   Visibility="Collapsed" />
                                                    </Grid>
                                                </ControlTemplate>
                                                <ControlTemplate x:Key="TopRightHeaderTemplate"
                                                                 TargetType="DataGridColumnHeader">
                                                    <Grid x:Name="RootElement">
                                                        <Grid.RowDefinitions>
                                                            <RowDefinition />
                                                            <RowDefinition />
                                                            <RowDefinition Height="Auto" />
                                                        </Grid.RowDefinitions>
                                                        <Border Background="{StaticResource WhiteBrush}"
                                                                Grid.RowSpan="2" />
                                                    </Grid>
                                                </ControlTemplate>
                                            </Grid.Resources>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition Width="*" />
                                                <ColumnDefinition Width="Auto" />
                                            </Grid.ColumnDefinitions>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto" />
                                                <RowDefinition Height="*" />
                                                <RowDefinition Height="Auto" />
                                            </Grid.RowDefinitions>
                                            <DataGridColumnHeader x:Name="TopLeftCornerHeader"
                                                                  Template="{StaticResource TopLeftHeaderTemplate}"
                                                                  Width="22"
                                                                  Visibility="{Binding RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}, Path=HeadersVisibility, Converter={x:Static DataGrid.HeadersVisibilityConverter}, ConverterParameter={x:Static DataGridHeadersVisibility.All}}" />
                                            <DataGridColumnHeadersPresenter x:Name="PART_ColumnHeadersPresenter"
                                                                            Grid.Column="1"
                                                                            Visibility="{Binding RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}, Path=HeadersVisibility, Converter={x:Static DataGrid.HeadersVisibilityConverter}, ConverterParameter={x:Static DataGridHeadersVisibility.Column}}" />
                                            <DataGridColumnHeader x:Name="TopRightCornerHeader"
                                                                  Grid.Column="2"
                                                                  Template="{StaticResource TopRightHeaderTemplate}"
                                                                  IsHitTestVisible="False" />
                                            <Rectangle x:Name="ColumnHeadersAndRowsSeparator"
                                                       Grid.ColumnSpan="3"
                                                       Fill="{StaticResource GrayBrush2}"
                                                       Height="1"
                                                       StrokeThickness="1"
                                                       VerticalAlignment="Bottom"
                                                       Width="Auto"
                                                       Visibility="Collapsed"
                                                       IsHitTestVisible="False" />
                                            <ScrollContentPresenter x:Name="PART_ScrollContentPresenter"
                                                                    Grid.ColumnSpan="2"
                                                                    Grid.Row="1"
                                                                    CanContentScroll="{TemplateBinding CanContentScroll}" />
                                            <Rectangle x:Name="BottomRightCorner"
                                                       Grid.Column="2"
                                                       Fill="{TemplateBinding Background}"
                                                       Grid.Row="2"
                                                       IsHitTestVisible="False" />
                                            <Rectangle x:Name="BottomLeftCorner"
                                                       Grid.ColumnSpan="2"
                                                       Fill="{TemplateBinding Background}"
                                                       Grid.Row="2"
                                                       IsHitTestVisible="False" />

                                            <ScrollBar x:Name="PART_VerticalScrollBar"
                                                       Grid.Column="2"
                                                       Grid.Row="1"
                                                       Orientation="Vertical"
                                                       ViewportSize="{TemplateBinding ViewportHeight}"
                                                       Maximum="{TemplateBinding ScrollableHeight}"
                                                       Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
                                                       Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />

                                            <Grid Grid.Column="1"
                                                  Grid.Row="2">
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="{Binding NonFrozenColumnsViewportHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" />
                                                    <ColumnDefinition Width="*" />
                                                </Grid.ColumnDefinitions>
                                                <Rectangle x:Name="FrozenColumnScrollBarSpacer"
                                                           IsHitTestVisible="False" />
                                                <ScrollBar x:Name="PART_HorizontalScrollBar"
                                                           Grid.Column="1"
                                                           Orientation="Horizontal"
                                                           ViewportSize="{TemplateBinding ViewportWidth}"
                                                           Maximum="{TemplateBinding ScrollableWidth}"
                                                           Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
                                                           Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
                                            </Grid>
                                            <!--<ValidationSummary x:Name="ValidationSummary" Grid.ColumnSpan="3" Filter="ObjectErrors" MaxHeight="90" Grid.Row="3"/>-->
                                        </Grid>
                                    </ControlTemplate>
                                </ScrollViewer.Template>
                                <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
                            </ScrollViewer>
                        </Border>
                        <Border x:Name="DisabledVisualElement"
                                Background="{StaticResource TransparentLightLightBrush}"
                                CornerRadius="2"
                                HorizontalAlignment="Stretch"
                                Height="Auto"
                                IsHitTestVisible="False"
                                Opacity="0"
                                VerticalAlignment="Stretch"
                                Width="Auto" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Style.Triggers>
            <Trigger Property="IsGrouping"
                     Value="true">
                <Setter Property="ScrollViewer.CanContentScroll"
                        Value="false" />
            </Trigger>
        </Style.Triggers>
    </Style>

    <!--CalendarItem Style-->
    <Style TargetType="CalendarItem"
           x:Key="DefaultCalendarItemStyle">
        <Setter Property="SnapsToDevicePixels"
                Value="true" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="CalendarItem">
                    <ControlTemplate.Resources>
                        <DataTemplate x:Key="{x:Static CalendarItem.DayTitleTemplateResourceKey}">
                            <TextBlock Foreground="{StaticResource TextBoxMouseOverBorderBrush}"
                                       FontWeight="Bold"
                                       FontSize="12"
                                       Margin="0,4,0,4"
                                       Text="{Binding}"
                                       HorizontalAlignment="Center"
                                       VerticalAlignment="Center" />
                        </DataTemplate>
                    </ControlTemplate.Resources>
                    <Grid x:Name="PART_Root">
                        <Grid.Resources>
                            <SolidColorBrush x:Key="DisabledBrush"
                                             Color="{StaticResource TransparentLightLightColor}"
                                             PresentationOptions:Freeze="True" />
                        </Grid.Resources>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="0.5"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="PART_DisabledVisual" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Border BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"
                                Margin="0">
                            <Grid Margin="2">
                                <Grid.Resources>
                                    <ControlTemplate x:Key="HeaderButtonTemplate"
                                                     TargetType="Button">
                                        <Grid Cursor="Hand">
                                            <vsm:VisualStateManager.VisualStateGroups>
                                                <vsm:VisualStateGroup x:Name="CommonStates">
                                                    <vsm:VisualState x:Name="Normal" />
                                                    <vsm:VisualState x:Name="MouseOver">
                                                        <Storyboard>
                                                            <ColorAnimation Duration="0"
                                                                            To="{StaticResource AccentColorLightBlue}"
                                                                            Storyboard.TargetProperty="(ContentControl.Foreground).(SolidColorBrush.Color)"
                                                                            Storyboard.TargetName="Content" />
                                                        </Storyboard>
                                                    </vsm:VisualState>
                                                    <vsm:VisualState x:Name="Disabled">
                                                        <Storyboard>
                                                            <DoubleAnimation Duration="0"
                                                                             To=".5"
                                                                             Storyboard.TargetProperty="Opacity"
                                                                             Storyboard.TargetName="Content" />
                                                        </Storyboard>
                                                    </vsm:VisualState>
                                                </vsm:VisualStateGroup>
                                            </vsm:VisualStateManager.VisualStateGroups>
                                            <ContentControl x:Name="Content"
                                                            ContentTemplate="{TemplateBinding ContentTemplate}"
                                                            Content="{TemplateBinding Content}"
                                                            Foreground="{StaticResource GrayBrush3}"
                                                            HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                                            IsTabStop="False"
                                                            Margin="1,5,1,9"
                                                            VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                                        </Grid>
                                    </ControlTemplate>
                                    <ControlTemplate x:Key="PreviousButtonTemplate"
                                                     TargetType="Button">
                                        <Grid Cursor="Hand">
                                            <vsm:VisualStateManager.VisualStateGroups>
                                                <vsm:VisualStateGroup x:Name="CommonStates">
                                                    <vsm:VisualState x:Name="Normal" />
                                                    <vsm:VisualState x:Name="MouseOver">
                                                        <Storyboard>
                                                            <ColorAnimation Duration="0"
                                                                            To="{StaticResource AccentColorLightBlue}"
                                                                            Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)"
                                                                            Storyboard.TargetName="IconPath" />
                                                        </Storyboard>
                                                    </vsm:VisualState>
                                                    <vsm:VisualState x:Name="Disabled">
                                                        <Storyboard>
                                                            <DoubleAnimation Duration="0"
                                                                             To=".5"
                                                                             Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Opacity)"
                                                                             Storyboard.TargetName="IconPath" />
                                                        </Storyboard>
                                                    </vsm:VisualState>
                                                </vsm:VisualStateGroup>
                                            </vsm:VisualStateManager.VisualStateGroups>
                                            <Rectangle Fill="{StaticResource TransparentWhiteBrush}"
                                                       Opacity="1"
                                                       Stretch="Fill" />
                                            <Grid>
                                                <Path x:Name="IconPath"
                                                      Data="M288.75,232.25 L288.75,240.625 L283,236.625 z"
                                                      Fill="{StaticResource GrayBrush3}"
                                                      HorizontalAlignment="Left"
                                                      Height="10"
                                                      Margin="14,-6,0,0"
                                                      Stretch="Fill"
                                                      VerticalAlignment="Center"
                                                      Width="6" />
                                            </Grid>
                                        </Grid>
                                    </ControlTemplate>
                                    <ControlTemplate x:Key="NextButtonTemplate"
                                                     TargetType="Button">
                                        <Grid Cursor="Hand">
                                            <vsm:VisualStateManager.VisualStateGroups>
                                                <vsm:VisualStateGroup x:Name="CommonStates">
                                                    <vsm:VisualState x:Name="Normal" />
                                                    <vsm:VisualState x:Name="MouseOver">
                                                        <Storyboard>
                                                            <ColorAnimation Duration="0"
                                                                            To="{StaticResource AccentColorLightBlue}"
                                                                            Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)"
                                                                            Storyboard.TargetName="IconPath" />
                                                        </Storyboard>
                                                    </vsm:VisualState>
                                                    <vsm:VisualState x:Name="Disabled">
                                                        <Storyboard>
                                                            <DoubleAnimation Duration="0"
                                                                             To=".5"
                                                                             Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Opacity)"
                                                                             Storyboard.TargetName="IconPath" />
                                                        </Storyboard>
                                                    </vsm:VisualState>
                                                </vsm:VisualStateGroup>
                                            </vsm:VisualStateManager.VisualStateGroups>
                                            <Rectangle Fill="{StaticResource TransparentWhiteBrush}"
                                                       Opacity="1"
                                                       Stretch="Fill" />
                                            <Grid>
                                                <Path x:Name="IconPath"
                                                      Data="M282.875,231.875 L282.875,240.375 L288.625,236 z"
                                                      Fill="{StaticResource GrayBrush3}"
                                                      HorizontalAlignment="Right"
                                                      Height="10"
                                                      Margin="0,-6,14,0"
                                                      Stretch="Fill"
                                                      VerticalAlignment="Center"
                                                      Width="6" />
                                            </Grid>
                                        </Grid>
                                    </ControlTemplate>
                                </Grid.Resources>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="Auto" />
                                </Grid.ColumnDefinitions>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="*" />
                                </Grid.RowDefinitions>
                                <Button x:Name="PART_PreviousButton"
                                        Grid.Row="0"
                                        Grid.Column="0"
                                        Cursor="Hand"
                                        HorizontalAlignment="Left"
                                        Height="24"
                                        Width="24"
                                        Margin="13,0,0,0"
                                        Style="{StaticResource ImageButton}">
                                    <Grid>
                                        <Path x:Name="PreviousIconPath"
                                              Data="M288.75,232.25 L288.75,240.625 L283,236.625 z"
                                              Fill="{StaticResource CheckBoxMouseOverBrush}"
                                              HorizontalAlignment="Left"
                                              Height="10"
                                              Stretch="Fill"
                                              VerticalAlignment="Center"
                                              Width="6"
                                              Opacity="0.7" />
                                    </Grid>
                                </Button>
                                <Button x:Name="PART_HeaderButton"
                                        Grid.Row="0"
                                        Grid.Column="1"
                                        Background="Transparent"
                                        BorderBrush="{x:Null}"
                                        BorderThickness="0"
                                        Foreground="{StaticResource HighlightBrush}"
                                        FontWeight="Bold"
                                        FontSize="13.333"
                                        HorizontalAlignment="Center"
                                        Cursor="Hand"
                                        Height="30"
                                        VerticalAlignment="Center"
                                        Width="Auto" />
                                <Button x:Name="PART_NextButton"
                                        Grid.Row="0"
                                        Grid.Column="2"
                                        HorizontalAlignment="Right"
                                        Height="24"
                                        Width="24"
                                        Cursor="Hand"
                                        Margin="0,0,13,0"
                                        Style="{StaticResource ImageButton}">
                                    <Path x:Name="NextIconPath"
                                          Data="M282.875,231.875 L282.875,240.375 L288.625,236 z"
                                          Fill="{StaticResource CheckBoxMouseOverBrush}"
                                          HorizontalAlignment="Right"
                                          Height="10"
                                          Stretch="Fill"
                                          VerticalAlignment="Center"
                                          Width="6"
                                          Opacity="0.7" />
                                </Button>
                                <Grid x:Name="PART_MonthView"
                                      Grid.ColumnSpan="3"
                                      Margin="15,7,15,6"
                                      Grid.Row="1"
                                      Visibility="Visible"
                                      HorizontalAlignment="Center">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                </Grid>
                                <Grid x:Name="PART_YearView"
                                      Grid.ColumnSpan="3"
                                      Margin="6,7,7,6"
                                      Grid.Row="1"
                                      Visibility="Hidden">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="Auto" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                        <RowDefinition Height="Auto" />
                                    </Grid.RowDefinitions>
                                </Grid>
                            </Grid>
                        </Border>
                        <Rectangle x:Name="PART_DisabledVisual"
                                   Fill="{StaticResource DisabledBrush}"
                                   Margin="0,2,0,2"
                                   Opacity="0"
                                   Stretch="Fill"
                                   Stroke="{StaticResource DisabledBrush}"
                                   StrokeThickness="1"
                                   Visibility="Collapsed" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsEnabled"
                                 Value="False">
                            <Setter Property="Visibility"
                                    TargetName="PART_DisabledVisual"
                                    Value="Visible" />
                        </Trigger>
                        <DataTrigger Value="Year">
                            <DataTrigger.Binding>
                                <Binding Path="DisplayMode">
                                    <Binding.RelativeSource>
                                        <RelativeSource Mode="FindAncestor"
                                                        AncestorType="{x:Type Calendar}" />
                                    </Binding.RelativeSource>
                                </Binding>
                            </DataTrigger.Binding>
                            <Setter TargetName="PART_MonthView"
                                    Property="Visibility"
                                    Value="Hidden" />
                            <Setter TargetName="PART_YearView"
                                    Property="Visibility"
                                    Value="Visible" />
                        </DataTrigger>
                        <DataTrigger Value="Decade">
                            <DataTrigger.Binding>
                                <Binding Path="DisplayMode">
                                    <Binding.RelativeSource>
                                        <RelativeSource Mode="FindAncestor"
                                                        AncestorType="{x:Type Calendar}" />
                                    </Binding.RelativeSource>
                                </Binding>
                            </DataTrigger.Binding>
                            <Setter TargetName="PART_MonthView"
                                    Property="Visibility"
                                    Value="Hidden" />
                            <Setter TargetName="PART_YearView"
                                    Property="Visibility"
                                    Value="Visible" />
                        </DataTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--Calendar Style-->
    <Style x:Key="DefaultCalendarStyle"
           TargetType="Calendar">
        <Setter Property="SnapsToDevicePixels"
                Value="true" />
        <Setter Property="IsTabStop"
                Value="False" />
        <Setter Property="Background"
                Value="{StaticResource WhiteBrush}" />
        <Setter Property="Foreground"
                Value="{StaticResource TextBrush}" />
        <Setter Property="FontFamily"
                Value="{StaticResource ContentFontFamily}" />
        <Setter Property="FontSize"
                Value="{StaticResource ContentFontSize}" />
        <Setter Property="BorderThickness"
                Value="1" />
        <Setter Property="Padding"
                Value="1" />
        <Setter Property="BorderBrush"
                Value="{StaticResource TextBoxBorderBrush}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Calendar">
                    <StackPanel x:Name="PART_Root"
                                HorizontalAlignment="Center"
                                RenderTransformOrigin="0.5,0.5">
                        <StackPanel.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleX="1" />
                                <SkewTransform />
                                <RotateTransform />
                                <TranslateTransform />
                            </TransformGroup>
                        </StackPanel.RenderTransform>
                        <CalendarItem x:Name="PART_CalendarItem"
                                      Background="{TemplateBinding Background}"
                                      BorderBrush="{TemplateBinding BorderBrush}"
                                      BorderThickness="{TemplateBinding BorderThickness}"
                                      FontFamily="{TemplateBinding FontFamily}"
                                      FontSize="{TemplateBinding FontSize}"
                                      Margin="0"
                                      Padding="0"
                                      FontWeight="Bold" />
                    </StackPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--CalendarDayButton Style-->
    <Style TargetType="CalendarDayButton"
           x:Key="DefaultCalendarDayButtonStyle">
        <Setter Property="SnapsToDevicePixels"
                Value="true" />
        <Setter Property="Background"
                Value="{x:Null}" />
        <Setter Property="Foreground"
                Value="{StaticResource TextBrush}" />
        <Setter Property="FontFamily"
                Value="{StaticResource ContentFontFamily}" />
        <Setter Property="FontSize"
                Value="{StaticResource ContentFontSize}" />
        <Setter Property="FontWeight"
                Value="Bold" />
        <Setter Property="HorizontalContentAlignment"
                Value="Center" />
        <Setter Property="VerticalContentAlignment"
                Value="Center" />
        <Setter Property="MinWidth"
                Value="8" />
        <Setter Property="MinHeight"
                Value="8" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="CalendarDayButton">
                    <Grid>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.1" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="MouseOverRectangle">
                                            <EasingDoubleKeyFrame KeyTime="0:0:0.1"
                                                                  Value="0.695" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="PressedBorder">
                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>

                                        <DoubleAnimation Duration="0"
                                                         To=".35"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="Content" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="SelectionStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Unselected" />
                                <vsm:VisualState x:Name="Selected">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="SelectedRectangle">
                                            <EasingDoubleKeyFrame KeyTime="0:0:0.1"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="CalendarButtonFocusStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="CalendarButtonFocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0"
                                                                       Storyboard.TargetProperty="Visibility"
                                                                       Storyboard.TargetName="FocusVisual">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="{x:Static Visibility.Visible}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="CalendarButtonUnfocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0"
                                                                       Storyboard.TargetProperty="Visibility"
                                                                       Storyboard.TargetName="FocusVisual">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="{x:Static Visibility.Collapsed}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="ActiveStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Active" />
                                <vsm:VisualState x:Name="Inactive">
                                    <Storyboard>
                                        <ColorAnimation Duration="0"
                                                        To="{StaticResource Gray3}"
                                                        Storyboard.TargetProperty="(ContentControl.Foreground).(GradientBrush.GradientStops)[2].(GradientStop.Color)"
                                                        Storyboard.TargetName="Content" />
                                        <ColorAnimation Duration="0"
                                                        To="{StaticResource Gray3}"
                                                        Storyboard.TargetProperty="(ContentControl.Foreground).(GradientBrush.GradientStops)[3].(GradientStop.Color)"
                                                        Storyboard.TargetName="Content" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="DayStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="RegularDay" />
                                <vsm:VisualState x:Name="Today">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="TodayBackground" />
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="(ContentControl.Foreground).(GradientBrush.GradientStops)[1].(GradientStop.Offset)"
                                                         Storyboard.TargetName="Content" />
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="(ContentControl.Foreground).(GradientBrush.GradientStops)[2].(GradientStop.Offset)"
                                                         Storyboard.TargetName="Content" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="BlackoutDayStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="NormalDay" />
                                <vsm:VisualState x:Name="BlackoutDay">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To=".2"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="BlackoutVisual" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="TodayBackground"
                                   Opacity="0">
                            <Rectangle.Fill>
                                <SolidColorBrush Color="{StaticResource Gray2}"
                                                 PresentationOptions:Freeze="True" />
                            </Rectangle.Fill>
                        </Rectangle>
                        <Rectangle x:Name="SelectedRectangle"
                                   IsHitTestVisible="False"
                                   Opacity="0"
                                   Fill="{StaticResource ItemSelectedBrush}" />
                        <Rectangle x:Name="MouseOverRectangle"
                                   IsHitTestVisible="False"
                                   Opacity="0"
                                   Fill="{StaticResource ItemSelectedBrush}" />
                        <Border x:Name="PressedBorder"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Opacity="0">
                            <Border.Background>
                                <SolidColorBrush Color="{StaticResource Gray5}"
                                                 PresentationOptions:Freeze="True" />
                            </Border.Background>
                        </Border>
                        <ContentControl x:Name="Content"
                                        FontSize="{TemplateBinding FontSize}"
                                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                        IsTabStop="False"
                                        Margin="5,1,5,1"
                                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                            <ContentControl.Foreground>
                                <LinearGradientBrush>
                                    <GradientStop Color="{StaticResource WhiteColor}"
                                                  Offset="0" />
                                    <GradientStop Color="{StaticResource WhiteColor}"
                                                  Offset="0" />
                                    <GradientStop Color="{StaticResource Gray3}"
                                                  Offset="0" />
                                    <GradientStop Color="{StaticResource Gray3}"
                                                  Offset="1" />
                                </LinearGradientBrush>
                            </ContentControl.Foreground>
                        </ContentControl>
                        <Path x:Name="BlackoutVisual"
                              Data="M8.1772461,11.029181 L10.433105,11.029181 L11.700684,12.801641 L12.973633,11.029181 L15.191895,11.029181 L12.844727,13.999395 L15.21875,17.060919 L12.962891,17.060919 L11.673828,15.256231 L10.352539,17.060919 L8.1396484,17.060919 L10.519043,14.042364 z"
                              Fill="{StaticResource BlackColorBrush}"
                              HorizontalAlignment="Stretch"
                              Margin="3"
                              Opacity="0"
                              RenderTransformOrigin="0.5,0.5"
                              Stretch="Fill"
                              VerticalAlignment="Stretch" />
                        <Rectangle x:Name="FocusVisual"
                                   IsHitTestVisible="false"
                                   Stroke="{StaticResource TextBoxMouseOverBorderBrush}"
                                   Visibility="Collapsed" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--CalendarButton Style-->
    <Style TargetType="CalendarButton"
           x:Key="DefaultCalendarButtonStyle">
        <Setter Property="SnapsToDevicePixels"
                Value="true" />
        <Setter Property="Background"
                Value="{x:Null}" />
        <Setter Property="Foreground"
                Value="{StaticResource TextBrush}" />
        <Setter Property="FontFamily"
                Value="{StaticResource ContentFontFamily}" />
        <Setter Property="FontSize"
                Value="{StaticResource ContentFontSize}" />
        <Setter Property="HorizontalContentAlignment"
                Value="Center" />
        <Setter Property="VerticalContentAlignment"
                Value="Center" />
        <Setter Property="MinWidth"
                Value="40" />
        <Setter Property="MinHeight"
                Value="42" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="CalendarButton">
                    <Grid>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0:0:0.1" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="MouseOverRectangle">
                                            <EasingDoubleKeyFrame KeyTime="0:0:0.1"
                                                                  Value="0.695" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="PressedBorder">
                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="SelectionStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Unselected" />
                                <vsm:VisualState x:Name="Selected">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="SelectedRectangle">
                                            <EasingDoubleKeyFrame KeyTime="0:0:0.1"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="ActiveStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="Active" />
                                <vsm:VisualState x:Name="Inactive">
                                    <Storyboard>
                                        <ColorAnimation Duration="0"
                                                        To="{StaticResource Gray3}"
                                                        Storyboard.TargetProperty="(ContentControl.Foreground).(SolidColorBrush.Color)"
                                                        Storyboard.TargetName="Content" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="CalendarButtonFocusStates">
                                <vsm:VisualStateGroup.Transitions>
                                    <vsm:VisualTransition GeneratedDuration="0" />
                                </vsm:VisualStateGroup.Transitions>
                                <vsm:VisualState x:Name="CalendarButtonFocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0"
                                                                       Storyboard.TargetProperty="Visibility"
                                                                       Storyboard.TargetName="FocusVisual">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="{x:Static Visibility.Visible}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="CalendarButtonUnfocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0"
                                                                       Storyboard.TargetProperty="Visibility"
                                                                       Storyboard.TargetName="FocusVisual">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="{x:Static Visibility.Visible}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="SelectedRectangle"
                                   IsHitTestVisible="False"
                                   Opacity="0"
                                   Fill="{StaticResource ItemSelectedBrush}" />
                        <Rectangle x:Name="MouseOverRectangle"
                                   IsHitTestVisible="False"
                                   Opacity="0"
                                   Fill="{StaticResource ItemSelectedBrush}" />
                        <Border x:Name="PressedBorder"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Opacity="0">
                            <Border.Background>
                                <SolidColorBrush Color="{StaticResource Gray5}"
                                                 PresentationOptions:Freeze="True" />
                            </Border.Background>
                        </Border>
                        <ContentControl x:Name="Content"
                                        ContentTemplate="{TemplateBinding ContentTemplate}"
                                        Content="{TemplateBinding Content}"
                                        Foreground="{StaticResource GrayBrush3}"
                                        FontSize="{TemplateBinding FontSize}"
                                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                        IsTabStop="False"
                                        Margin="1,0,1,1"
                                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                        <Rectangle x:Name="FocusVisual"
                                   IsHitTestVisible="false"
                                   Stroke="{StaticResource TextBoxMouseOverBorderBrush}"
                                   Visibility="Collapsed" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--DatePickerTextBox Style-->
    <Style TargetType="TextBox"
           x:Key="DefaultDatePickerTextBoxStyle">
        <Setter Property="SnapsToDevicePixels"
                Value="true" />
        <Setter Property="FontFamily"
                Value="{StaticResource ContentFontFamily}" />
        <Setter Property="FontSize"
                Value="{StaticResource ContentFontSize}" />
        <Setter Property="BorderThickness"
                Value="1" />
        <Setter Property="FocusVisualStyle"
                Value="{x:Null}" />
        <Setter Property="MinHeight"
                Value="26" />
        <Setter Property="Background"
                Value="{StaticResource ControlBackgroundBrush}" />
        <Setter Property="Foreground"
                Value="{StaticResource TextBrush}" />
        <Setter Property="Padding"
                Value="0" />
        <Setter Property="BorderBrush"
                Value="{StaticResource TextBoxBorderBrush}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="TextBox">
                    <Grid x:Name="RootElement">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="(UIElement.Opacity)"
                                                         Storyboard.TargetName="FocusRectangle" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                                                       Storyboard.TargetName="DisabledVisualElement">
                                            <SplineDoubleKeyFrame KeyTime="0"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="ReadOnly">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                                                       Storyboard.TargetName="ReadOnlyVisualElement">
                                            <SplineDoubleKeyFrame KeyTime="0"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="FocusStates">
                                <vsm:VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="(UIElement.Opacity)"
                                                         Storyboard.TargetName="FocusRectangle" />
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="(UIElement.Opacity)"
                                                         Storyboard.TargetName="FocusInnerRectangle" />
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Unfocused">
                                    <Storyboard />
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="ValidationStates">
                                <vsm:VisualState x:Name="Valid" />
                                <vsm:VisualState x:Name="InvalidUnfocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility"
                                                                       Storyboard.TargetName="ValidationErrorElement">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="InvalidFocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility"
                                                                       Storyboard.TargetName="ValidationErrorElement">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen"
                                                                       Storyboard.TargetName="validationTooltip">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Boolean>True</sys:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Rectangle x:Name="Base"
                                   Stroke="{TemplateBinding BorderBrush}"
                                   StrokeThickness="{TemplateBinding BorderThickness}"
                                   Opacity="1"
                                   Fill="{StaticResource ControlBackgroundBrush}" />
                        <Rectangle x:Name="FocusRectangle"
                                   StrokeThickness="{TemplateBinding BorderThickness}"
                                   Opacity="0"
                                   Stroke="{StaticResource TextBoxMouseOverBorderBrush}" />
                        <Rectangle x:Name="FocusInnerRectangle"
                                   StrokeThickness="{TemplateBinding BorderThickness}"
                                   Opacity="0"
                                   Margin="1"
                                   Stroke="{StaticResource TextBoxMouseOverInnerBorderBrush}" />
                        <Grid Margin="0,1,0,0">
                            <Border x:Name="ReadOnlyVisualElement"
                                    Background="{StaticResource ReadOnlyBrush}"
                                    Opacity="0" />
                            <Grid>
                                <ScrollViewer x:Name="PART_ContentHost"
                                              BorderThickness="0"
                                              IsTabStop="False"
                                              Margin="4,0,4,2"
                                              VerticalAlignment="Center"
                                              Background="{x:Null}" />
                            </Grid>
                        </Grid>
                        <Rectangle x:Name="DisabledVisualElement"
                                   Stroke="{StaticResource ControlsDisabledBrush}"
                                   StrokeThickness="{TemplateBinding BorderThickness}"
                                   Fill="{StaticResource ControlsDisabledBrush}"
                                   IsHitTestVisible="False"
                                   Opacity="0" />
                        <Border x:Name="ValidationErrorElement"
                                BorderBrush="{StaticResource ControlsValidationBrush}"
                                BorderThickness="1"
                                Visibility="Collapsed">
                            <ToolTipService.ToolTip>
                                <ToolTip x:Name="validationTooltip"
                                         IsHitTestVisible="True"
                                         DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}"
                                         Placement="Right"
                                         PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}"
                                         Template="{StaticResource ValidationToolTipTemplate}" />
                            </ToolTipService.ToolTip>
                            <Grid Background="Transparent"
                                  HorizontalAlignment="Right"
                                  Height="12"
                                  Margin="1,-4,-4,0"
                                  VerticalAlignment="Top"
                                  Width="12">
                                <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z"
                                      Fill="{StaticResource ValidationBrush5}"
                                      Margin="1,3,0,0" />
                                <Path Data="M 0,0 L2,0 L 8,6 L8,8"
                                      Fill="{StaticResource WhiteColorBrush}"
                                      Margin="1,3,0,0" />
                            </Grid>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--DatePicker Style-->
    <Style TargetType="DatePicker"
           x:Key="DefaultDatePickerStyle">
        <Setter Property="SnapsToDevicePixels"
                Value="true" />
        <Setter Property="IsTabStop"
                Value="False" />
        <Setter Property="Background"
                Value="{StaticResource WhiteBrush}" />
        <Setter Property="Padding"
                Value="2" />
        <!--<Setter Property="SelectionBackground">
            <Setter.Value>
                <SolidColorBrush Color="{StaticResource AccentColorBlue}"/>
            </Setter.Value>
        </Setter>-->
        <Setter Property="MinHeight"
                Value="26" />
        <Setter Property="BorderBrush"
                Value="{StaticResource TextBoxBorderBrush}" />
        <Setter Property="CalendarStyle"
                Value="{StaticResource DefaultCalendarStyle}" />
        <Setter Property="BorderThickness"
                Value="1" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="DatePicker">
                    <Grid x:Name="PART_Root">
                        <Grid.Resources>
                            <SolidColorBrush x:Key="DisabledBrush"
                                             Color="{StaticResource TransparentLightLightColor}"
                                             PresentationOptions:Freeze="True" />
                            <ControlTemplate x:Key="DropDownButtonTemplate"
                                             TargetType="Button">
                                <Grid FlowDirection="LeftToRight">
                                    <vsm:VisualStateManager.VisualStateGroups>
                                        <vsm:VisualStateGroup x:Name="CommonStates">
                                            <vsm:VisualStateGroup.Transitions>
                                                <vsm:VisualTransition GeneratedDuration="0" />
                                                <vsm:VisualTransition GeneratedDuration="0:0:0.1"
                                                                      To="MouseOver" />
                                                <vsm:VisualTransition GeneratedDuration="0:0:0.1"
                                                                      To="Pressed" />
                                            </vsm:VisualStateGroup.Transitions>
                                            <vsm:VisualState x:Name="Normal" />
                                            <vsm:VisualState x:Name="MouseOver">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                                   Storyboard.TargetName="MouseOverBorder">
                                                        <EasingDoubleKeyFrame KeyTime="0"
                                                                              Value="1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                            <vsm:VisualState x:Name="Pressed">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                                   Storyboard.TargetName="PressedBorder">
                                                        <EasingDoubleKeyFrame KeyTime="0"
                                                                              Value="1" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                            <vsm:VisualState x:Name="Disabled">
                                                <Storyboard>
                                                    <DoubleAnimationUsingKeyFrames BeginTime="0"
                                                                                   Duration="00:00:00.001"
                                                                                   Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                                   Storyboard.TargetName="DisabledVisual">
                                                        <SplineDoubleKeyFrame KeyTime="0"
                                                                              Value="0.595" />
                                                    </DoubleAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </vsm:VisualState>
                                        </vsm:VisualStateGroup>
                                    </vsm:VisualStateManager.VisualStateGroups>
                                    <Grid Background="{StaticResource TransparentWhiteBrush}"
                                          HorizontalAlignment="Center"
                                          Height="18"
                                          Margin="0"
                                          VerticalAlignment="Center"
                                          Width="19">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="20*" />
                                            <ColumnDefinition Width="20*" />
                                            <ColumnDefinition Width="20*" />
                                            <ColumnDefinition Width="20*" />
                                        </Grid.ColumnDefinitions>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="23*" />
                                            <RowDefinition Height="19*" />
                                            <RowDefinition Height="19*" />
                                            <RowDefinition Height="19*" />
                                        </Grid.RowDefinitions>
                                        <Border x:Name="Background"
                                                BorderBrush="{StaticResource TextBoxBorderBrush}"
                                                BorderThickness="1"
                                                Grid.ColumnSpan="4"
                                                Margin="0,-1,0,0"
                                                Opacity="1"
                                                Grid.Row="1"
                                                Grid.RowSpan="3">
                                            <Border.Background>
                                                <SolidColorBrush Color="{StaticResource Gray7}"
                                                                 PresentationOptions:Freeze="True" />
                                            </Border.Background>
                                        </Border>
                                        <Rectangle Grid.ColumnSpan="4"
                                                   Grid.RowSpan="1"
                                                   StrokeThickness="1"
                                                   Stroke="{StaticResource TextBoxBorderBrush}"
                                                   Fill="{StaticResource TextBoxMouseOverBorderBrush}" />
                                        <Border x:Name="MouseOverBorder"
                                                BorderBrush="{StaticResource TextBoxBorderBrush}"
                                                BorderThickness="1"
                                                Grid.ColumnSpan="4"
                                                Margin="0,-1,0,0"
                                                Opacity="0"
                                                Grid.Row="1"
                                                Grid.RowSpan="3">
                                            <Border.Background>
                                                <SolidColorBrush Color="{StaticResource Gray8}"
                                                                 PresentationOptions:Freeze="True" />
                                            </Border.Background>
                                        </Border>
                                        <Border x:Name="PressedBorder"
                                                BorderBrush="{StaticResource TextBoxBorderBrush}"
                                                BorderThickness="1"
                                                Grid.ColumnSpan="4"
                                                Margin="0,-1,0,0"
                                                Opacity="0"
                                                Grid.Row="1"
                                                Grid.RowSpan="3">
                                            <Border.Background>
                                                <SolidColorBrush Color="{StaticResource Gray5}"
                                                                 PresentationOptions:Freeze="True" />
                                            </Border.Background>
                                        </Border>
                                        <Path Grid.ColumnSpan="4"
                                              Grid.Column="0"
                                              Data="M11.426758,8.4305077 L11.749023,8.4305077 L11.749023,16.331387 L10.674805,16.331387 L10.674805,10.299648 L9.0742188,11.298672 L9.0742188,10.294277 C9.4788408,10.090176 9.9094238,9.8090878 10.365967,9.4510155 C10.82251,9.0929432 11.176106,8.7527733 11.426758,8.4305077 z M14.65086,8.4305077 L18.566387,8.4305077 L18.566387,9.3435936 L15.671368,9.3435936 L15.671368,11.255703 C15.936341,11.058764 16.27293,10.960293 16.681133,10.960293 C17.411602,10.960293 17.969301,11.178717 18.354229,11.615566 C18.739157,12.052416 18.931622,12.673672 18.931622,13.479336 C18.931622,15.452317 18.052553,16.438808 16.294415,16.438808 C15.560365,16.438808 14.951641,16.234707 14.468243,15.826504 L14.881817,14.929531 C15.368796,15.326992 15.837872,15.525723 16.289043,15.525723 C17.298809,15.525723 17.803692,14.895514 17.803692,13.635098 C17.803692,12.460618 17.305971,11.873379 16.310528,11.873379 C15.83071,11.873379 15.399232,12.079271 15.016094,12.491055 L14.65086,12.238613 z"
                                              Fill="{StaticResource GrayBrush3}"
                                              HorizontalAlignment="Center"
                                              Margin="4,3,4,3"
                                              Grid.Row="1"
                                              Grid.RowSpan="3"
                                              RenderTransformOrigin="0.5,0.5"
                                              Stretch="Fill"
                                              VerticalAlignment="Center" />
                                        <Ellipse Grid.ColumnSpan="4"
                                                 Fill="{StaticResource WhiteColorBrush}"
                                                 HorizontalAlignment="Center"
                                                 Height="3"
                                                 StrokeThickness="0"
                                                 VerticalAlignment="Center"
                                                 Width="3" />
                                        <Border x:Name="DisabledVisual"
                                                BorderBrush="{StaticResource TransparentLightLightBrush}"
                                                BorderThickness="1"
                                                Grid.ColumnSpan="4"
                                                CornerRadius="0,0,.5,.5"
                                                Opacity="0"
                                                Grid.Row="0"
                                                Grid.RowSpan="4"
                                                Background="White" />
                                    </Grid>
                                </Grid>
                            </ControlTemplate>
                        </Grid.Resources>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="PART_DisabledVisual" />
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>
                        <DatePickerTextBox x:Name="PART_TextBox"
                                           BorderBrush="{TemplateBinding BorderBrush}"
                                           BorderThickness="{TemplateBinding BorderThickness}"
                                           Background="{TemplateBinding Background}"
                                           Grid.Column="0"
                                           Padding="{TemplateBinding Padding}" />
                        <Button x:Name="PART_Button"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Grid.Column="1"
                                Foreground="{TemplateBinding Foreground}"
                                Margin="2,0,2,0"
                                Template="{StaticResource DropDownButtonTemplate}"
                                Width="20" />
                        <Grid x:Name="PART_DisabledVisual"
                              Grid.ColumnSpan="2"
                              IsHitTestVisible="False"
                              Opacity="0">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Rectangle Fill="{StaticResource TransparentLightLightBrush}"
                                       RadiusY="1"
                                       RadiusX="1" />
                            <Rectangle Grid.Column="1"
                                       Fill="{StaticResource TransparentLightLightBrush}"
                                       Height="18"
                                       Margin="2,0,2,0"
                                       RadiusY="1"
                                       RadiusX="1"
                                       Width="19" />
                        </Grid>
                        <Popup x:Name="PART_Popup"
                               AllowsTransparency="True"
                               Placement="Bottom"
                               PlacementTarget="{Binding ElementName=PART_TextBox}"
                               StaysOpen="False" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Foreground"
                Value="{StaticResource TextBrush}" />
    </Style>

    <!--Label Style-->
    <Style TargetType="Label"
           x:Key="DefaultLabelStyle">
        <Setter Property="IsTabStop"
                Value="False" />
        <Setter Property="SnapsToDevicePixels"
                Value="true" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Label">
                    <Grid>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="ControlColor"
                                                                      Storyboard.TargetProperty="Color">
                                            <EasingColorKeyFrame KeyTime="0"
                                                                 Value="{StaticResource Gray7}" />
                                        </ColorAnimationUsingKeyFrames>

                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="ValidationStates">
                                <vsm:VisualState x:Name="Valid" />
                                <vsm:VisualState x:Name="Invalid">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0:0:1.5"
                                                                       Storyboard.TargetProperty="Foreground"
                                                                       Storyboard.TargetName="ContentControl">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <SolidColorBrush Color="Red" />
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="RequiredStates">
                                <vsm:VisualState x:Name="NotRequired" />
                                <vsm:VisualState x:Name="Required">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0"
                                                                       Storyboard.TargetProperty="FontWeight"
                                                                       Storyboard.TargetName="ContentControl">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="SemiBold" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>
                        <Border BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"
                                CornerRadius="2"
                                Padding="{TemplateBinding Padding}">
                            <ContentControl x:Name="ContentControl"
                                            Cursor="{TemplateBinding Cursor}"
                                            ContentTemplate="{TemplateBinding ContentTemplate}"
                                            Content="{TemplateBinding Content}"
                                            FontWeight="{TemplateBinding FontWeight}"
                                            FontStretch="{TemplateBinding FontStretch}"
                                            FontSize="{TemplateBinding FontSize}"
                                            FontFamily="{TemplateBinding FontFamily}"
                                            HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
                                            HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
                                            IsTabStop="False"
                                            VerticalAlignment="{TemplateBinding VerticalAlignment}"
                                            VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}">
                                <ContentControl.Foreground>
                                    <SolidColorBrush x:Name="ControlColor"
                                                     Color="{StaticResource BlackColor}" />
                                </ContentControl.Foreground>
                            </ContentControl>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Foreground"
                Value="{StaticResource TextBrush}" />
    </Style>

    <!--GridSplitter Style-->
    <Style TargetType="GridSplitter"
           x:Key="DefaultGridSplitterStyle">
        <Setter Property="Background"
                Value="{StaticResource WhiteColorBrush}" />
        <Setter Property="IsTabStop"
                Value="true" />
        <Setter Property="HorizontalAlignment"
                Value="Right" />
        <Setter Property="PreviewStyle">
            <Setter.Value>
                <Style TargetType="Control">
                    <Setter Property="Background"
                            Value="{StaticResource GrayBrush2}" />
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="Control">
                                <Grid x:Name="Root"
                                      Opacity=".5">
                                    <Rectangle Fill="{TemplateBinding Background}" />
                                    <Grid x:Name="HorizontalTemplate"
                                          Height="6" />
                                    <Grid x:Name="VerticalTemplate"
                                          Visibility="Collapsed"
                                          Width="6" />
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="GridSplitter">
                    <Grid x:Name="Root"
                          IsHitTestVisible="{TemplateBinding IsEnabled}">
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal" />
                                <VisualState x:Name="MouseOver" />
                                <VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="0.5"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="Root" />
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                            <VisualStateGroup x:Name="FocusStates">
                                <VisualStateGroup.Transitions>
                                    <VisualTransition GeneratedDuration="0" />
                                </VisualStateGroup.Transitions>
                                <VisualState x:Name="Unfocused" />
                                <VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimation Duration="0"
                                                         To="1"
                                                         Storyboard.TargetProperty="Opacity"
                                                         Storyboard.TargetName="FocusVisual" />
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
                        <Rectangle Fill="{TemplateBinding Background}"
                                   StrokeThickness="0" />
                        <Grid x:Name="HorizontalTemplate"
                              Height="10"
                              Visibility="Hidden">
                            <Border BorderThickness="1"
                                    BorderBrush="{StaticResource TextBoxBorderBrush}">
                                <Canvas Height="6"
                                        VerticalAlignment="Center"
                                        Width="12">
                                    <Path Data="M405.14063,248.65625 L405.14063,250.01588"
                                          Fill="White"
                                          Height="2.36"
                                          Stretch="Fill"
                                          UseLayoutRounding="False"
                                          Width="1"
                                          StrokeThickness="0.25"
                                          Canvas.Left="1"
                                          Canvas.Top="0.29">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M404.76563,249.82813 L406.984,249.82813"
                                          Fill="White"
                                          Height="0.25"
                                          Stretch="Fill"
                                          StrokeThickness="0.25"
                                          UseLayoutRounding="False"
                                          Width="2.468"
                                          Canvas.Top="1.525">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M405.14063,248.65625 L405.14063,250.01588"
                                          Fill="White"
                                          Height="2.36"
                                          Stretch="Fill"
                                          UseLayoutRounding="False"
                                          Width="1"
                                          StrokeThickness="0.25"
                                          Canvas.Left="1"
                                          Canvas.Top="3.463">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M404.76563,249.82813 L406.984,249.82813"
                                          Fill="White"
                                          Height="0.25"
                                          Stretch="Fill"
                                          StrokeThickness="0.25"
                                          UseLayoutRounding="False"
                                          Width="2.468"
                                          Canvas.Top="4.698">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M405.14063,248.65625 L405.14063,250.01588"
                                          Fill="White"
                                          Height="2.36"
                                          Stretch="Fill"
                                          UseLayoutRounding="False"
                                          Width="1"
                                          StrokeThickness="0.25"
                                          Canvas.Left="4.006"
                                          Canvas.Top="0.29">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M404.76563,249.82813 L406.984,249.82813"
                                          Fill="White"
                                          Height="0.25"
                                          Stretch="Fill"
                                          StrokeThickness="0.25"
                                          UseLayoutRounding="False"
                                          Width="2.468"
                                          Canvas.Top="1.525"
                                          Canvas.Left="3.006">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M405.14063,248.65625 L405.14063,250.01588"
                                          Fill="White"
                                          Height="2.36"
                                          Stretch="Fill"
                                          UseLayoutRounding="False"
                                          Width="1"
                                          StrokeThickness="0.25"
                                          Canvas.Left="4.006"
                                          Canvas.Top="3.463">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M404.76563,249.82813 L406.984,249.82813"
                                          Fill="White"
                                          Height="0.25"
                                          Stretch="Fill"
                                          StrokeThickness="0.25"
                                          UseLayoutRounding="False"
                                          Width="2.468"
                                          Canvas.Top="4.698"
                                          Canvas.Left="3.006">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M405.14063,248.65625 L405.14063,250.01588"
                                          Fill="White"
                                          Height="2.36"
                                          Stretch="Fill"
                                          UseLayoutRounding="False"
                                          Width="1"
                                          StrokeThickness="0.25"
                                          Canvas.Left="6.845"
                                          Canvas.Top="0.29">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M404.76563,249.82813 L406.984,249.82813"
                                          Fill="White"
                                          Height="0.25"
                                          Stretch="Fill"
                                          StrokeThickness="0.25"
                                          UseLayoutRounding="False"
                                          Width="2.468"
                                          Canvas.Top="1.525"
                                          Canvas.Left="5.845">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M405.14063,248.65625 L405.14063,250.01588"
                                          Fill="White"
                                          Height="2.36"
                                          Stretch="Fill"
                                          UseLayoutRounding="False"
                                          Width="1"
                                          StrokeThickness="0.25"
                                          Canvas.Left="6.845"
                                          Canvas.Top="3.463">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M404.76563,249.82813 L406.984,249.82813"
                                          Fill="White"
                                          Height="0.25"
                                          Stretch="Fill"
                                          StrokeThickness="0.25"
                                          UseLayoutRounding="False"
                                          Width="2.468"
                                          Canvas.Top="4.698"
                                          Canvas.Left="5.845">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M405.14063,248.65625 L405.14063,250.01588"
                                          Fill="White"
                                          Height="2.36"
                                          Stretch="Fill"
                                          UseLayoutRounding="False"
                                          Width="1"
                                          StrokeThickness="0.25"
                                          Canvas.Left="9.851"
                                          Canvas.Top="0.29">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M404.76563,249.82813 L406.984,249.82813"
                                          Fill="White"
                                          Height="0.25"
                                          Stretch="Fill"
                                          StrokeThickness="0.25"
                                          UseLayoutRounding="False"
                                          Width="2.468"
                                          Canvas.Top="1.525"
                                          Canvas.Left="8.851">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M405.14063,248.65625 L405.14063,250.01588"
                                          Fill="White"
                                          Height="2.36"
                                          Stretch="Fill"
                                          UseLayoutRounding="False"
                                          Width="1"
                                          StrokeThickness="0.25"
                                          Canvas.Left="9.851"
                                          Canvas.Top="3.463">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M404.76563,249.82813 L406.984,249.82813"
                                          Fill="White"
                                          Height="0.25"
                                          Stretch="Fill"
                                          StrokeThickness="0.25"
                                          UseLayoutRounding="False"
                                          Width="2.468"
                                          Canvas.Top="4.698"
                                          Canvas.Left="8.851">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                </Canvas>
                            </Border>
                        </Grid>
                        <Grid x:Name="VerticalTemplate"
                              Visibility="Visible"
                              Width="10">
                            <Border BorderThickness="1"
                                    BorderBrush="{StaticResource TextBoxBorderBrush}">
                                <Canvas Width="6"
                                        Height="12">
                                    <Path Data="M405.14063,248.65625 L405.14063,250.01588"
                                          Fill="White"
                                          Height="2.36"
                                          Stretch="Fill"
                                          UseLayoutRounding="False"
                                          Width="1"
                                          StrokeThickness="0.25"
                                          Canvas.Left="1"
                                          Canvas.Top="0.29">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M404.76563,249.82813 L406.984,249.82813"
                                          Fill="White"
                                          Height="0.25"
                                          Stretch="Fill"
                                          StrokeThickness="0.25"
                                          UseLayoutRounding="False"
                                          Width="2.468"
                                          Canvas.Top="1.525">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M405.14063,248.65625 L405.14063,250.01588"
                                          Fill="White"
                                          Height="2.36"
                                          Stretch="Fill"
                                          UseLayoutRounding="False"
                                          Width="1"
                                          StrokeThickness="0.25"
                                          Canvas.Left="1"
                                          Canvas.Top="3.463">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M404.76563,249.82813 L406.984,249.82813"
                                          Fill="White"
                                          Height="0.25"
                                          Stretch="Fill"
                                          StrokeThickness="0.25"
                                          UseLayoutRounding="False"
                                          Width="2.468"
                                          Canvas.Top="4.698">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M405.14063,248.65625 L405.14063,250.01588"
                                          Fill="White"
                                          Height="2.36"
                                          Stretch="Fill"
                                          UseLayoutRounding="False"
                                          Width="1"
                                          StrokeThickness="0.25"
                                          Canvas.Left="1"
                                          Canvas.Top="6.302">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M404.76563,249.82813 L406.984,249.82813"
                                          Fill="White"
                                          Height="0.25"
                                          Stretch="Fill"
                                          StrokeThickness="0.25"
                                          UseLayoutRounding="False"
                                          Width="2.468"
                                          Canvas.Top="7.537">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M405.14063,248.65625 L405.14063,250.01588"
                                          Fill="White"
                                          Height="2.36"
                                          Stretch="Fill"
                                          UseLayoutRounding="False"
                                          Width="1"
                                          StrokeThickness="0.25"
                                          Canvas.Left="1"
                                          Canvas.Top="8.974">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M404.76563,249.82813 L406.984,249.82813"
                                          Fill="White"
                                          Height="0.25"
                                          Stretch="Fill"
                                          StrokeThickness="0.25"
                                          UseLayoutRounding="False"
                                          Width="2.468"
                                          Canvas.Top="10.209">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M405.14063,248.65625 L405.14063,250.01588"
                                          Fill="White"
                                          Height="2.36"
                                          Stretch="Fill"
                                          UseLayoutRounding="False"
                                          Width="1"
                                          StrokeThickness="0.25"
                                          Canvas.Left="4.006"
                                          Canvas.Top="0.29">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M404.76563,249.82813 L406.984,249.82813"
                                          Fill="White"
                                          Height="0.25"
                                          Stretch="Fill"
                                          StrokeThickness="0.25"
                                          UseLayoutRounding="False"
                                          Width="2.468"
                                          Canvas.Top="1.525"
                                          Canvas.Left="3.006">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M405.14063,248.65625 L405.14063,250.01588"
                                          Fill="White"
                                          Height="2.36"
                                          Stretch="Fill"
                                          UseLayoutRounding="False"
                                          Width="1"
                                          StrokeThickness="0.25"
                                          Canvas.Left="4.006"
                                          Canvas.Top="3.463">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M404.76563,249.82813 L406.984,249.82813"
                                          Fill="White"
                                          Height="0.25"
                                          Stretch="Fill"
                                          StrokeThickness="0.25"
                                          UseLayoutRounding="False"
                                          Width="2.468"
                                          Canvas.Top="4.698"
                                          Canvas.Left="3.006">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M405.14063,248.65625 L405.14063,250.01588"
                                          Fill="White"
                                          Height="2.36"
                                          Stretch="Fill"
                                          UseLayoutRounding="False"
                                          Width="1"
                                          StrokeThickness="0.25"
                                          Canvas.Left="4.006"
                                          Canvas.Top="6.302">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M404.76563,249.82813 L406.984,249.82813"
                                          Fill="White"
                                          Height="0.25"
                                          Stretch="Fill"
                                          StrokeThickness="0.25"
                                          UseLayoutRounding="False"
                                          Width="2.468"
                                          Canvas.Top="7.537"
                                          Canvas.Left="3.006">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M405.14063,248.65625 L405.14063,250.01588"
                                          Fill="White"
                                          Height="2.36"
                                          Stretch="Fill"
                                          UseLayoutRounding="False"
                                          Width="1"
                                          StrokeThickness="0.25"
                                          Canvas.Left="4.006"
                                          Canvas.Top="8.974">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                    <Path Data="M404.76563,249.82813 L406.984,249.82813"
                                          Fill="White"
                                          Height="0.25"
                                          Stretch="Fill"
                                          StrokeThickness="0.25"
                                          UseLayoutRounding="False"
                                          Width="2.468"
                                          Canvas.Top="10.209"
                                          Canvas.Left="3.006">
                                        <Path.Stroke>
                                            <SolidColorBrush Color="{StaticResource Gray2}" />
                                        </Path.Stroke>
                                    </Path>
                                </Canvas>
                            </Border>
                        </Grid>
                        <Rectangle x:Name="FocusVisual"
                                   IsHitTestVisible="false"
                                   Opacity="0"
                                   StrokeThickness="1">
                            <Rectangle.Stroke>
                                <SolidColorBrush Color="{StaticResource HighlightDarkColor}" />
                            </Rectangle.Stroke>
                        </Rectangle>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="ResizeDirection"
                                 Value="Rows">
                            <Setter Property="Visibility"
                                    TargetName="VerticalTemplate"
                                    Value="Hidden" />
                            <Setter Property="Visibility"
                                    TargetName="HorizontalTemplate"
                                    Value="Visible" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Foreground"
                Value="{StaticResource TextBrush}" />
    </Style>

    <!--TreeView Style-->
    <Style TargetType="TreeView"
           x:Key="DefaultTreeViewStyle">
        <Setter Property="SnapsToDevicePixels"
                Value="true" />
        <Setter Property="Background"
                Value="{StaticResource WhiteBrush}" />
        <Setter Property="Foreground"
                Value="{StaticResource TextBrush}" />
        <Setter Property="HorizontalContentAlignment"
                Value="Left" />
        <Setter Property="VerticalContentAlignment"
                Value="Top" />
        <Setter Property="Cursor"
                Value="Arrow" />
        <Setter Property="BorderThickness"
                Value="0" />
        <Setter Property="Padding"
                Value="1" />
        <Setter Property="BorderBrush"
                Value="{StaticResource ThumbBrush}" />
        <Setter Property="IsTabStop"
                Value="True" />
        <Setter Property="KeyboardNavigation.TabNavigation"
                Value="Once" />
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility"
                Value="Auto" />
        <Setter Property="ScrollViewer.VerticalScrollBarVisibility"
                Value="Auto" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="TreeView">
                    <Grid>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver" />
                                <vsm:VisualState x:Name="Pressed" />
                                <vsm:VisualState x:Name="Disabled" />
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="FocusStates">
                                <vsm:VisualState x:Name="Unfocused" />
                                <vsm:VisualState x:Name="Focused" />
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="ValidationStates">
                                <vsm:VisualState x:Name="Valid" />
                                <vsm:VisualState x:Name="InvalidUnfocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility"
                                                                       Storyboard.TargetName="Validation">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="{x:Static Visibility.Visible}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="InvalidFocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility"
                                                                       Storyboard.TargetName="Validation">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="{x:Static Visibility.Visible}" />
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen"
                                                                       Storyboard.TargetName="ValidationToolTip">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <sys:Boolean>True</sys:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Border BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}">
                            <Border Background="{TemplateBinding Background}"
                                    Padding="{TemplateBinding Padding}">
                                <ScrollViewer x:Name="ScrollViewer"
                                              Focusable="False"
                                              IsTabStop="False"
                                              Background="Transparent"
                                              BorderThickness="0"
                                              CanContentScroll="False">
                                    <ItemsPresenter Margin="5" />
                                </ScrollViewer>
                            </Border>
                        </Border>
                        <Border x:Name="Validation"
                                BorderBrush="{StaticResource ValidationBrush5}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Grid.Column="1"
                                CornerRadius="2"
                                Visibility="Collapsed">
                            <ToolTipService.ToolTip>
                                <ToolTip x:Name="ValidationToolTip"
                                         DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}"
                                         IsHitTestVisible="True"
                                         Placement="Right"
                                         PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}"
                                         Template="{StaticResource CommonValidationToolTipTemplate}" />
                            </ToolTipService.ToolTip>
                            <Grid Background="Transparent"
                                  HorizontalAlignment="Right"
                                  Height="10"
                                  Margin="0,-4,-4,0"
                                  VerticalAlignment="Top"
                                  Width="10">
                                <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 Z"
                                      Fill="{StaticResource ValidationBrush5}"
                                      Margin="-1,3,0,0" />
                                <Path Data="M 0,0 L2,0 L 8,6 L8,8"
                                      Fill="{StaticResource WhiteColorBrush}"
                                      Margin="-1,3,0,0" />
                            </Grid>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--TreeViewItem Style-->
    <Style TargetType="TreeViewItem"
           x:Key="DefaultTreeViewItemStyle">
        <Setter Property="SnapsToDevicePixels"
                Value="true" />
        <Setter Property="Padding"
                Value="3" />
        <Setter Property="HorizontalContentAlignment"
                Value="Left" />
        <Setter Property="VerticalContentAlignment"
                Value="Top" />
        <Setter Property="Background"
                Value="Transparent" />
        <Setter Property="Foreground"
                Value="{StaticResource TextBrush}" />
        <Setter Property="FontFamily"
                Value="{StaticResource ContentFontFamily}" />
        <Setter Property="FontSize"
                Value="{StaticResource ContentFontSize}" />
        <Setter Property="BorderThickness"
                Value="1" />
        <Setter Property="Cursor"
                Value="Arrow" />
        <Setter Property="IsTabStop"
                Value="True" />
        <Setter Property="KeyboardNavigation.TabNavigation"
                Value="Once" />
        <Setter Property="Margin"
                Value="0 1 0 0" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="TreeViewItem">
                    <Grid Background="{x:Null}">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="15" />
                            <ColumnDefinition Width="Auto" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="*" />
                        </Grid.RowDefinitions>
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver" />
                                <vsm:VisualState x:Name="Pressed" />
                                <vsm:VisualState x:Name="Disabled" />
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="SelectionStates">
                                <vsm:VisualState x:Name="Unselected" />
                                <vsm:VisualState x:Name="Selected">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="SelectedRectangle">
                                            <EasingDoubleKeyFrame KeyTime="0:0:0.1"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="SelectWrapper"
                                                                      Storyboard.TargetProperty="Color">
                                            <EasingColorKeyFrame KeyTime="0"
                                                                 Value="{StaticResource WhiteColor}" />
                                        </ColorAnimationUsingKeyFrames>

                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="SelectedInactive">
                                    <Storyboard />
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="HasItemsStates">
                                <vsm:VisualState x:Name="HasItems" />
                                <vsm:VisualState x:Name="NoItems">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0"
                                                                       Storyboard.TargetProperty="Visibility"
                                                                       Storyboard.TargetName="ExpanderButton">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="{x:Static Visibility.Collapsed}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="ExpansionStates">
                                <vsm:VisualState x:Name="Collapsed" />
                                <vsm:VisualState x:Name="Expanded">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Duration="0"
                                                                       Storyboard.TargetProperty="Visibility"
                                                                       Storyboard.TargetName="ItemsHost">
                                            <DiscreteObjectKeyFrame KeyTime="0"
                                                                    Value="{x:Static Visibility.Visible}" />
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <ToggleButton x:Name="ExpanderButton"
                                      HorizontalAlignment="Stretch"
                                      IsTabStop="False"
                                      KeyboardNavigation.TabNavigation="Once"
                                      VerticalAlignment="Stretch"
                                      IsChecked="{Binding IsExpanded, RelativeSource={RelativeSource TemplatedParent}}"
                                      ClickMode="Press">
                            <ToggleButton.Template>
                                <ControlTemplate TargetType="ToggleButton">
                                    <Grid x:Name="Root"
                                          Background="Transparent">
                                        <vsm:VisualStateManager.VisualStateGroups>
                                            <vsm:VisualStateGroup x:Name="CommonStates">
                                                <vsm:VisualState x:Name="Normal" />
                                                <vsm:VisualState x:Name="MouseOver">
                                                    <Storyboard>
                                                        <DoubleAnimation Duration="0"
                                                                         To="1"
                                                                         Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                         Storyboard.TargetName="grid"
                                                                         d:IsOptimized="True" />
                                                        <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)"
                                                                                      Storyboard.TargetName="UncheckedVisual">
                                                            <EasingColorKeyFrame KeyTime="0"
                                                                                 Value="White" />
                                                            <EasingColorKeyFrame KeyTime="0:0:0.4"
                                                                                 Value="{StaticResource AccentColorLightBlue}" />
                                                        </ColorAnimationUsingKeyFrames>
                                                    </Storyboard>
                                                </vsm:VisualState>
                                                <vsm:VisualState x:Name="Disabled">
                                                    <Storyboard>
                                                        <DoubleAnimation Duration="0"
                                                                         To=".7"
                                                                         Storyboard.TargetProperty="Opacity"
                                                                         Storyboard.TargetName="Root" />
                                                    </Storyboard>
                                                </vsm:VisualState>
                                            </vsm:VisualStateGroup>
                                            <vsm:VisualStateGroup x:Name="CheckStates">
                                                <vsm:VisualState x:Name="Unchecked" />
                                                <vsm:VisualState x:Name="Checked">
                                                    <Storyboard>
                                                        <DoubleAnimation Duration="0"
                                                                         To="0"
                                                                         Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                         Storyboard.TargetName="UncheckedVisual"
                                                                         d:IsOptimized="True" />
                                                        <DoubleAnimation Duration="0"
                                                                         To="1"
                                                                         Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                         Storyboard.TargetName="CheckedVisual"
                                                                         d:IsOptimized="True" />
                                                    </Storyboard>
                                                </vsm:VisualState>
                                            </vsm:VisualStateGroup>
                                        </vsm:VisualStateManager.VisualStateGroups>
                                        <Grid x:Name="grid"
                                              HorizontalAlignment="Right"
                                              Margin="2 2 5 2"
                                              Opacity="0.6">
                                            <Path x:Name="OldUncheckedVisual"
                                                  Data="M5.8535156,2.1822653 L10.195313,2.1822653 L10.195313,6.5152731 L14.537109,6.5152731 L14.537109,10.848281 L10.195313,10.848281 L10.195313,15.181289 L5.8535156,15.181289 L5.8535156,10.848281 L1.5205078,10.848281 L1.5205078,6.5152731 L5.8535156,6.5152731 z"
                                                  HorizontalAlignment="Right"
                                                  Height="8"
                                                  Margin="0"
                                                  Stretch="Fill"
                                                  UseLayoutRounding="False"
                                                  VerticalAlignment="Center"
                                                  Width="8"
                                                  Visibility="Collapsed">
                                                <Path.Fill>
                                                    <SolidColorBrush Color="{StaticResource Gray3}"
                                                                     PresentationOptions:Freeze="True" />
                                                </Path.Fill>
                                            </Path>
                                            <Path x:Name="OldCheckedVisual"
                                                  Data="M10.195313,6.5152731 L14.537109,6.5152731 14.537109,10.848281 10.195313,10.848281 5.8535156,10.848281 1.5205078,10.848281 1.5205078,6.5152731 5.8535156,6.5152731 z"
                                                  HorizontalAlignment="Right"
                                                  Height="2"
                                                  Stretch="Fill"
                                                  UseLayoutRounding="False"
                                                  VerticalAlignment="Center"
                                                  Width="8"
                                                  Visibility="Collapsed">
                                                <Path.Fill>
                                                    <SolidColorBrush Color="{StaticResource Gray3}"
                                                                     PresentationOptions:Freeze="True" />
                                                </Path.Fill>
                                            </Path>
                                            <Path x:Name="UncheckedVisual"
                                                  Data="M 0,0 L 0,9 L 5,4.5 Z"
                                                  HorizontalAlignment="Right"
                                                  Height="9"
                                                  StrokeThickness="1"
                                                  StrokeLineJoin="Miter"
                                                  VerticalAlignment="Center"
                                                  Width="6"
                                                  Margin="0,0,2,0"
                                                  UseLayoutRounding="False">
                                                <Path.Fill>
                                                    <SolidColorBrush x:Name="BlankBackgroundBrush"
                                                                     Color="{StaticResource BaseColor2}"
                                                                     PresentationOptions:Freeze="True" />
                                                </Path.Fill>
                                                <Path.Stroke>
                                                    <SolidColorBrush x:Name="BaseBrush5"
                                                                     Color="{StaticResource BaseColor5}"
                                                                     PresentationOptions:Freeze="True" />
                                                </Path.Stroke>
                                            </Path>
                                            <Path x:Name="CheckedVisual"
                                                  Data="M 6,0 L 6,6 L 0,6 Z"
                                                  HorizontalAlignment="Center"
                                                  Height="6"
                                                  Opacity="0"
                                                  StrokeLineJoin="Miter"
                                                  VerticalAlignment="Center"
                                                  Width="6"
                                                  Stroke="Black"
                                                  UseLayoutRounding="False">
                                                <Path.Fill>
                                                    <SolidColorBrush Color="{StaticResource BaseColor3}"
                                                                     PresentationOptions:Freeze="True" />
                                                </Path.Fill>
                                            </Path>
                                        </Grid>
                                    </Grid>
                                </ControlTemplate>
                            </ToggleButton.Template>
                        </ToggleButton>
                        <Rectangle x:Name="SelectedRectangle"
                                   Grid.Column="1"
                                   IsHitTestVisible="False"
                                   Opacity="0"
                                   Fill="{StaticResource HighlightBrush}" />
                        <Rectangle x:Name="Selection"
                                   Grid.Column="1"
                                   IsHitTestVisible="False"
                                   Opacity="0"
                                   RadiusY="2"
                                   RadiusX="2"
                                   StrokeThickness="1">
                            <Rectangle.Fill>
                                <SolidColorBrush x:Name="SelectionFill"
                                                 Color="{StaticResource AccentColorLightBlue}"
                                                 PresentationOptions:Freeze="True" />
                            </Rectangle.Fill>
                            <Rectangle.Stroke>
                                <SolidColorBrush x:Name="SelectionStroke"
                                                 Color="{StaticResource AccentColorBlue}"
                                                 PresentationOptions:Freeze="True" />
                            </Rectangle.Stroke>
                        </Rectangle>
                        <Button x:Name="PART_Header"
                                FontWeight="Light"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"
                                Cursor="{TemplateBinding Cursor}"
                                ClickMode="Hover"
                                Grid.Column="1"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                IsTabStop="False"
                                KeyboardNavigation.TabNavigation="Once"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
                            <Button.Foreground>
                                <SolidColorBrush x:Name="HeaderWrapper"
                                                 Color="{StaticResource BlackColor}"
                                                 PresentationOptions:Freeze="True" />
                            </Button.Foreground>
                            <Button.Template>
                                <ControlTemplate TargetType="Button">
                                    <Grid Background="{TemplateBinding Background}">
                                        <vsm:VisualStateManager.VisualStateGroups>
                                            <vsm:VisualStateGroup x:Name="CommonStates">
                                                <vsm:VisualState x:Name="Normal" />
                                                <vsm:VisualState x:Name="Pressed">
                                                    <Storyboard>
                                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                                       Storyboard.TargetName="MouseOverRectangle">
                                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                                  Value="0.5" />
                                                        </DoubleAnimationUsingKeyFrames>
                                                        <ColorAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenterWrapperColor"
                                                                                      Storyboard.TargetProperty="Color">
                                                            <EasingColorKeyFrame KeyTime="0"
                                                                                 Value="{StaticResource WhiteColor}" />
                                                        </ColorAnimationUsingKeyFrames>
                                                    </Storyboard>
                                                </vsm:VisualState>
                                                <vsm:VisualState x:Name="Disabled">
                                                    <Storyboard>
                                                        <DoubleAnimation Duration="0"
                                                                         To=".55"
                                                                         Storyboard.TargetProperty="Opacity"
                                                                         Storyboard.TargetName="Content" />
                                                    </Storyboard>
                                                </vsm:VisualState>
                                            </vsm:VisualStateGroup>
                                        </vsm:VisualStateManager.VisualStateGroups>
                                        <Rectangle x:Name="MouseOverRectangle"
                                                   IsHitTestVisible="False"
                                                   Opacity="0"
                                                   Fill="{StaticResource HighlightBrush}" />
                                        <ContentControl Margin="0,-2">
                                            <ContentControl.Foreground>
                                                <SolidColorBrush x:Name="ContentPresenterWrapperColor"
                                                                 Color="{StaticResource BlackColor}"
                                                                 PresentationOptions:Freeze="True" />
                                            </ContentControl.Foreground>
                                            <ContentPresenter x:Name="Content"
                                                              Cursor="{TemplateBinding Cursor}"
                                                              ContentTemplate="{TemplateBinding ContentTemplate}"
                                                              Content="{TemplateBinding Content}"
                                                              HorizontalAlignment="Left"
                                                              Margin="{TemplateBinding Padding}"
                                                              RenderOptions.ClearTypeHint="Enabled" />
                                        </ContentControl>
                                    </Grid>
                                </ControlTemplate>
                            </Button.Template>
                            <ContentControl>
                                <ContentControl.Foreground>
                                    <SolidColorBrush x:Name="SelectWrapper"
                                                     Color="{StaticResource BlackColor}"
                                                     PresentationOptions:Freeze="True" />
                                </ContentControl.Foreground>
                                <ContentPresenter ContentTemplate="{TemplateBinding HeaderTemplate}"
                                                  Content="{TemplateBinding Header}"
                                                  RenderOptions.ClearTypeHint="Enabled" />
                            </ContentControl>
                        </Button>
                        <ItemsPresenter x:Name="ItemsHost"
                                        Grid.ColumnSpan="2"
                                        Grid.Column="1"
                                        Grid.Row="1"
                                        Visibility="Collapsed" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--TabControl Style-->
    <Style TargetType="TabControl"
           x:Key="DefaultTabControlStyle">
        <Setter Property="SnapsToDevicePixels"
                Value="true" />
        <Setter Property="IsTabStop"
                Value="False" />
        <Setter Property="Background"
                Value="{x:Null}" />
        <Setter Property="BorderBrush">
            <Setter.Value>
                <SolidColorBrush Color="{StaticResource Gray1}" />
            </Setter.Value>
        </Setter>
        <Setter Property="BorderThickness"
                Value="0" />
        <Setter Property="Padding"
                Value="5" />
        <Setter Property="HorizontalContentAlignment"
                Value="Stretch" />
        <Setter Property="VerticalContentAlignment"
                Value="Stretch" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="TabControl">
                    <Grid ClipToBounds="True"
                          SnapsToDevicePixels="True"
                          KeyboardNavigation.TabNavigation="Local">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition x:Name="ColumnDefinition0"
                                              Width="*" />
                            <ColumnDefinition x:Name="ColumnDefinition1"
                                              Width="0" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition x:Name="RowDefinition0"
                                           Height="Auto" />
                            <RowDefinition x:Name="RowDefinition1"
                                           Height="*" />
                        </Grid.RowDefinitions>
                        <TabPanel x:Name="HeaderPanel"
                                  Grid.Column="0"
                                  Grid.Row="0"
                                  Margin="5,2,2,-1"
                                  IsItemsHost="True"
                                  KeyboardNavigation.TabIndex="1"
                                  Panel.ZIndex="1" />
                        <Border x:Name="ContentPanel"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="0,1,0,0"
                                Background="{TemplateBinding Background}"
                                Grid.Column="0"
                                KeyboardNavigation.DirectionalNavigation="Contained"
                                Grid.Row="1"
                                KeyboardNavigation.TabIndex="2"
                                KeyboardNavigation.TabNavigation="Local">
                            <ContentPresenter x:Name="PART_SelectedContentHost"
                                              ContentTemplate="{TemplateBinding SelectedContentTemplate}"
                                              Content="{TemplateBinding SelectedContent}"
                                              ContentTemplateSelector="{TemplateBinding SelectedContentTemplateSelector}"
                                              ContentStringFormat="{TemplateBinding SelectedContentStringFormat}"
                                              ContentSource="SelectedContent"
                                              Margin="{TemplateBinding Padding}"
                                              SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
                        </Border>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="TabStripPlacement"
                                 Value="Bottom">
                            <Setter Property="Grid.Row"
                                    TargetName="HeaderPanel"
                                    Value="1" />
                            <Setter Property="Grid.Row"
                                    TargetName="ContentPanel"
                                    Value="0" />
                            <Setter Property="Height"
                                    TargetName="RowDefinition0"
                                    Value="*" />
                            <Setter Property="Height"
                                    TargetName="RowDefinition1"
                                    Value="Auto" />
                            <Setter Property="Margin"
                                    TargetName="HeaderPanel"
                                    Value="2,-1,2,2" />
                        </Trigger>
                        <Trigger Property="TabStripPlacement"
                                 Value="Left">
                            <Setter Property="Grid.Row"
                                    TargetName="HeaderPanel"
                                    Value="0" />
                            <Setter Property="Grid.Row"
                                    TargetName="ContentPanel"
                                    Value="0" />
                            <Setter Property="Grid.Column"
                                    TargetName="HeaderPanel"
                                    Value="0" />
                            <Setter Property="Grid.Column"
                                    TargetName="ContentPanel"
                                    Value="1" />
                            <Setter Property="Width"
                                    TargetName="ColumnDefinition0"
                                    Value="Auto" />
                            <Setter Property="Width"
                                    TargetName="ColumnDefinition1"
                                    Value="*" />
                            <Setter Property="Height"
                                    TargetName="RowDefinition0"
                                    Value="*" />
                            <Setter Property="Height"
                                    TargetName="RowDefinition1"
                                    Value="0" />
                            <Setter Property="Margin"
                                    TargetName="HeaderPanel"
                                    Value="2,2,-1,2" />
                        </Trigger>
                        <Trigger Property="TabStripPlacement"
                                 Value="Right">
                            <Setter Property="Grid.Row"
                                    TargetName="HeaderPanel"
                                    Value="0" />
                            <Setter Property="Grid.Row"
                                    TargetName="ContentPanel"
                                    Value="0" />
                            <Setter Property="Grid.Column"
                                    TargetName="HeaderPanel"
                                    Value="1" />
                            <Setter Property="Grid.Column"
                                    TargetName="ContentPanel"
                                    Value="0" />
                            <Setter Property="Width"
                                    TargetName="ColumnDefinition0"
                                    Value="*" />
                            <Setter Property="Width"
                                    TargetName="ColumnDefinition1"
                                    Value="Auto" />
                            <Setter Property="Height"
                                    TargetName="RowDefinition0"
                                    Value="*" />
                            <Setter Property="Height"
                                    TargetName="RowDefinition1"
                                    Value="0" />
                            <Setter Property="Margin"
                                    TargetName="HeaderPanel"
                                    Value="-1,2,2,2" />
                        </Trigger>
                        <Trigger Property="IsEnabled"
                                 Value="False">
                            <Setter Property="Foreground"
                                    Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--TabItem Style-->
    <Style TargetType="TabItem"
           x:Key="DefaultTabItemStyle">
        <Setter Property="SnapsToDevicePixels"
                Value="true" />
        <Setter Property="FontFamily"
                Value="{StaticResource ContentFontFamily}" />
        <Setter Property="FontSize"
                Value="{StaticResource ControlTitleFontSize}" />
        <Setter Property="TextOptions.TextHintingMode"
                Value="Animated" />
        <Setter Property="IsTabStop"
                Value="False" />
        <Setter Property="Background"
                Value="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}, Path=Background}" />
        <Setter Property="BorderBrush">
            <Setter.Value>
                <SolidColorBrush Color="{StaticResource Gray1}" />
            </Setter.Value>
        </Setter>
        <Setter Property="BorderThickness"
                Value="1" />
        <Setter Property="Padding"
                Value="6,2,6,2" />
        <Setter Property="HorizontalContentAlignment"
                Value="Stretch" />
        <Setter Property="VerticalContentAlignment"
                Value="Stretch" />
        <Setter Property="MinWidth"
                Value="5" />
        <Setter Property="MinHeight"
                Value="5" />
        <Setter Property="Foreground"
                Value="{StaticResource TextBrush}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="TabItem">
                    <Grid SnapsToDevicePixels="True">
                        <Border x:Name="Bd"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="0,0,0,1"
                                Background="{TemplateBinding Background}">
                            <Border x:Name="Bd2"
                                    BorderBrush="{TemplateBinding Background}"
                                    BorderThickness="0"
                                    Padding="{TemplateBinding Padding}">
                                <ContentPresenter x:Name="Content"
                                                  ContentTemplate="{TemplateBinding HeaderTemplate}"
                                                  Content="{TemplateBinding Header}"
                                                  ContentStringFormat="{TemplateBinding HeaderStringFormat}"
                                                  ContentSource="Header"
                                                  HorizontalAlignment="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}"
                                                  RecognizesAccessKey="True"
                                                  SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
                                                  VerticalAlignment="{Binding VerticalContentAlignment, RelativeSource={RelativeSource FindAncestor, AncestorLevel=1, AncestorType={x:Type ItemsControl}}}" />
                            </Border>
                        </Border>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsSelected"
                                 Value="True">
                            <Setter Property="Panel.ZIndex"
                                    Value="1" />
                            <Setter Property="TextElement.FontWeight"
                                    TargetName="Content"
                                    Value="Bold" />
                        </Trigger>
                        <Trigger Property="IsSelected"
                                 Value="False">
                            <Setter Property="TextElement.Foreground"
                                    TargetName="Content"
                                    Value="{StaticResource CheckBoxBrush}" />
                        </Trigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected"
                                           Value="False" />
                                <Condition Property="IsMouseOver"
                                           Value="True" />
                            </MultiTrigger.Conditions>
                            <Setter Property="UIElement.Opacity"
                                    Value="0.6" />
                        </MultiTrigger>
                        <Trigger Property="TabStripPlacement"
                                 Value="Bottom">
                            <Setter Property="BorderThickness"
                                    TargetName="Bd"
                                    Value="0,1,0,0" />
                        </Trigger>
                        <Trigger Property="TabStripPlacement"
                                 Value="Left">
                            <Setter Property="BorderThickness"
                                    TargetName="Bd"
                                    Value="0,0,1,0" />
                        </Trigger>
                        <Trigger Property="TabStripPlacement"
                                 Value="Right">
                            <Setter Property="BorderThickness"
                                    TargetName="Bd"
                                    Value="1,0,0,0" />
                        </Trigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected"
                                           Value="True" />
                                <Condition Property="TabStripPlacement"
                                           Value="Top" />
                            </MultiTrigger.Conditions>
                            <Setter Property="Margin"
                                    TargetName="Content"
                                    Value="0,0,0,1" />
                            <Setter Property="BorderThickness"
                                    TargetName="Bd"
                                    Value="1,0" />
                            <Setter Property="BorderThickness"
                                    TargetName="Bd2"
                                    Value="0,0,0,1" />
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected"
                                           Value="True" />
                                <Condition Property="TabStripPlacement"
                                           Value="Bottom" />
                            </MultiTrigger.Conditions>
                            <Setter Property="Margin"
                                    TargetName="Content"
                                    Value="0,1,0,0" />
                            <Setter Property="BorderThickness"
                                    TargetName="Bd"
                                    Value="1,0" />
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected"
                                           Value="True" />
                                <Condition Property="TabStripPlacement"
                                           Value="Left" />
                            </MultiTrigger.Conditions>
                            <Setter Property="Margin"
                                    TargetName="Content"
                                    Value="0,0,1,0" />
                            <Setter Property="BorderThickness"
                                    TargetName="Bd"
                                    Value="0,1" />
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsSelected"
                                           Value="True" />
                                <Condition Property="TabStripPlacement"
                                           Value="Right" />
                            </MultiTrigger.Conditions>
                            <Setter Property="Margin"
                                    TargetName="Content"
                                    Value="1,0,0,0" />
                            <Setter Property="BorderThickness"
                                    TargetName="Bd"
                                    Value="0,1" />
                        </MultiTrigger>
                        <Trigger Property="IsEnabled"
                                 Value="False">
                            <Setter Property="UIElement.Opacity"
                                    Value="0.3" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--AutoCompleteBoxTextBox Style-->
    <Style x:Key="AutoCompleteTextBox"
           TargetType="TextBox">
        <Setter Property="BorderThickness"
                Value="1" />
        <Setter Property="Background"
                Value="{StaticResource WhiteColorBrush}" />
        <Setter Property="Foreground"
                Value="{StaticResource TextBrush}" />
        <Setter Property="FontFamily"
                Value="{StaticResource ContentFontFamily}" />
        <Setter Property="FontSize"
                Value="{StaticResource ContentFontSize}" />
        <Setter Property="TextOptions.TextHintingMode"
                Value="Animated" />
        <Setter Property="Padding"
                Value="2" />
        <Setter Property="BorderBrush"
                Value="{StaticResource TextBoxBorderBrush}" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="TextBox">
                    <Grid x:Name="RootElement">
                        <vsm:VisualStateManager.VisualStateGroups>
                            <vsm:VisualStateGroup x:Name="CommonStates">
                                <vsm:VisualState x:Name="Normal" />
                                <vsm:VisualState x:Name="MouseOver">
                                    <Storyboard />
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Disabled">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                                                       Storyboard.TargetName="DisabledVisualElement">
                                            <SplineDoubleKeyFrame KeyTime="0"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="ReadOnly">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity"
                                                                       Storyboard.TargetName="ReadOnlyVisualElement">
                                            <SplineDoubleKeyFrame KeyTime="0"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="FocusStates">
                                <vsm:VisualState x:Name="Focused">
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                                       Storyboard.TargetName="FocusedBorder">
                                            <EasingDoubleKeyFrame KeyTime="0"
                                                                  Value="1" />
                                        </DoubleAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="Unfocused">
                                    <Storyboard />
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                            <vsm:VisualStateGroup x:Name="ValidationStates">
                                <vsm:VisualState x:Name="Valid" />
                                <vsm:VisualState x:Name="InvalidUnfocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility"
                                                                       Storyboard.TargetName="ValidationErrorElement">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                                <vsm:VisualState x:Name="InvalidFocused">
                                    <Storyboard>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility"
                                                                       Storyboard.TargetName="ValidationErrorElement">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <Visibility>Visible</Visibility>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                        <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsOpen"
                                                                       Storyboard.TargetName="validationTooltip">
                                            <DiscreteObjectKeyFrame KeyTime="0">
                                                <DiscreteObjectKeyFrame.Value>
                                                    <System:Boolean>True</System:Boolean>
                                                </DiscreteObjectKeyFrame.Value>
                                            </DiscreteObjectKeyFrame>
                                        </ObjectAnimationUsingKeyFrames>
                                    </Storyboard>
                                </vsm:VisualState>
                            </vsm:VisualStateGroup>
                        </vsm:VisualStateManager.VisualStateGroups>
                        <Border x:Name="Border"
                                BorderBrush="{TemplateBinding BorderBrush}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{TemplateBinding Background}"
                                CornerRadius="2"
                                Opacity="1">
                            <Grid>
                                <Border x:Name="ReadOnlyVisualElement"
                                        Background="{StaticResource GrayBrush13}"
                                        Opacity="0" />
                                <Grid>
                                    <ScrollViewer x:Name="ContentElement"
                                                  BorderThickness="0"
                                                  IsTabStop="False"
                                                  Padding="{TemplateBinding Padding}" />
                                </Grid>
                            </Grid>
                        </Border>
                        <Border x:Name="FocusedBorder"
                                BorderBrush="{StaticResource CheckBoxBrush}"
                                BorderThickness="1"
                                CornerRadius="2"
                                Opacity="0" />
                        <Border x:Name="DisabledVisualElement"
                                BorderBrush="{StaticResource GrayBrush12}"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                Background="{StaticResource GrayBrush12}"
                                IsHitTestVisible="False"
                                Opacity="0" />
                        <Border x:Name="ValidationErrorElement"
                                BorderBrush="{StaticResource ValidationBrush5}"
                                BorderThickness="1"
                                CornerRadius="1"
                                Visibility="Collapsed">
                            <ToolTipService.ToolTip>
                                <ToolTip x:Name="validationTooltip"
                                         DataContext="{Binding RelativeSource={RelativeSource TemplatedParent}}"
                                         Placement="Right"
                                         PlacementTarget="{Binding RelativeSource={RelativeSource TemplatedParent}}"
                                         Template="{StaticResource ValidationToolTipTemplate}">
                                    <ToolTip.Triggers>
                                        <EventTrigger RoutedEvent="Canvas.Loaded">
                                            <BeginStoryboard>
                                                <Storyboard>
                                                    <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible"
                                                                                   Storyboard.TargetName="validationTooltip">
                                                        <DiscreteObjectKeyFrame KeyTime="0">
                                                            <DiscreteObjectKeyFrame.Value>
                                                                <System:Boolean>true</System:Boolean>
                                                            </DiscreteObjectKeyFrame.Value>
                                                        </DiscreteObjectKeyFrame>
                                                    </ObjectAnimationUsingKeyFrames>
                                                </Storyboard>
                                            </BeginStoryboard>
                                        </EventTrigger>
                                    </ToolTip.Triggers>
                                </ToolTip>
                            </ToolTipService.ToolTip>
                            <Grid Background="Transparent"
                                  HorizontalAlignment="Right"
                                  Height="12"
                                  Margin="1,-4,-4,0"
                                  VerticalAlignment="Top"
                                  Width="12">
                                <Path Data="M 1,0 L6,0 A 2,2 90 0 1 8,2 L8,7 z"
                                      Fill="{StaticResource ValidationBrush5}"
                                      Margin="1,3,0,0" />
                                <Path Data="M 0,0 L2,0 L 8,6 L8,8"
                                      Fill="{StaticResource WhiteColorBrush}"
                                      Margin="1,3,0,0" />
                            </Grid>
                        </Border>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--CommonValidationToolTipTemplate Style-->
    <!-- If you use AutoCompleteBoxStyle in a separate project-->
    <!--Be sure to include this ControlTemplate xaml for Validation Ux-->
    <!--AutoCompleteBoxStyle has a dependency on it-->
    <ControlTemplate x:Key="CommonValidationToolTipTemplate"
                     TargetType="ToolTip">
        <Grid x:Name="Root"
              Margin="5,0"
              Opacity="0"
              RenderTransformOrigin="0,0">
            <Grid.RenderTransform>
                <TranslateTransform x:Name="Translation"
                                    X="-25" />
            </Grid.RenderTransform>
            <vsm:VisualStateManager.VisualStateGroups>
                <vsm:VisualStateGroup x:Name="OpenStates">
                    <vsm:VisualStateGroup.Transitions>
                        <vsm:VisualTransition GeneratedDuration="0" />
                        <vsm:VisualTransition GeneratedDuration="0:0:0.2"
                                              To="Open">
                            <Storyboard>
                                <DoubleAnimation Duration="0:0:0.2"
                                                 To="0"
                                                 Storyboard.TargetProperty="X"
                                                 Storyboard.TargetName="Translation">
                                    <DoubleAnimation.EasingFunction>
                                        <BackEase Amplitude=".3"
                                                  EasingMode="EaseOut" />
                                    </DoubleAnimation.EasingFunction>
                                </DoubleAnimation>
                                <DoubleAnimation Duration="0:0:0.2"
                                                 To="1"
                                                 Storyboard.TargetProperty="Opacity"
                                                 Storyboard.TargetName="Root" />
                            </Storyboard>
                        </vsm:VisualTransition>
                    </vsm:VisualStateGroup.Transitions>
                    <vsm:VisualState x:Name="Closed">
                        <Storyboard>
                            <DoubleAnimation Duration="0"
                                             To="0"
                                             Storyboard.TargetProperty="Opacity"
                                             Storyboard.TargetName="Root" />
                        </Storyboard>
                    </vsm:VisualState>
                    <vsm:VisualState x:Name="Open">
                        <Storyboard>
                            <DoubleAnimation Duration="0"
                                             To="0"
                                             Storyboard.TargetProperty="X"
                                             Storyboard.TargetName="Translation" />
                            <DoubleAnimation Duration="0"
                                             To="1"
                                             Storyboard.TargetProperty="Opacity"
                                             Storyboard.TargetName="Root" />
                        </Storyboard>
                    </vsm:VisualState>
                </vsm:VisualStateGroup>
            </vsm:VisualStateManager.VisualStateGroups>
            <Border Background="{StaticResource ValidationBrush1}"
                    CornerRadius="5"
                    Margin="4,4,-4,-4" />
            <Border Background="{StaticResource ValidationBrush2}"
                    CornerRadius="4"
                    Margin="3,3,-3,-3" />
            <Border Background="{StaticResource ValidationBrush3}"
                    CornerRadius="3"
                    Margin="2,2,-2,-2" />
            <Border Background="{StaticResource ValidationBrush4}"
                    CornerRadius="2"
                    Margin="1,1,-1,-1" />
            <Border Background="{StaticResource ValidationBrush5}"
                    CornerRadius="2">
                <TextBlock Foreground="White"
                           MaxWidth="250"
                           Margin="8,4,8,4"
                           TextWrapping="Wrap"
                           Text="{Binding (Validation.Errors)[0].ErrorContent}"
                           UseLayoutRounding="false" />
            </Border>
        </Grid>
    </ControlTemplate>

    <!-- Implicit Styles -->
    <!-- When defining your own styles, set "based on" the same way to keep control theming -->
    <Style TargetType="DataGridCell"
           BasedOn="{StaticResource DefaultDataGridCellStyle}" />
    <Style TargetType="DataGridColumnHeader"
           BasedOn="{StaticResource DefaultDataGridColumnHeaderStyle}" />
    <Style TargetType="DataGridRowHeader"
           BasedOn="{StaticResource DefaultDataGridRowHeaderStyle}" />
    <Style TargetType="DataGridRow"
           BasedOn="{StaticResource DefaultDataGridRowStyle}" />
    <Style TargetType="DataGrid"
           BasedOn="{StaticResource DefaultDataGridStyle}" />
    <Style TargetType="CalendarItem"
           BasedOn="{StaticResource DefaultCalendarItemStyle}" />
    <Style TargetType="Calendar"
           BasedOn="{StaticResource DefaultCalendarStyle}" />
    <Style TargetType="CalendarDayButton"
           BasedOn="{StaticResource DefaultCalendarDayButtonStyle}" />
    <Style TargetType="CalendarButton"
           BasedOn="{StaticResource DefaultCalendarButtonStyle}" />
    <Style TargetType="DatePickerTextBox"
           BasedOn="{StaticResource DefaultDatePickerTextBoxStyle}" />
    <Style TargetType="DatePicker"
           BasedOn="{StaticResource DefaultDatePickerStyle}" />
    <!--<Style TargetType="AutoCompleteBox" BasedOn="{StaticResource DefaultAutoCompleteBoxStyle}" />-->
    <Style TargetType="Label"
           BasedOn="{StaticResource DefaultLabelStyle}" />
    <Style TargetType="GridSplitter"
           BasedOn="{StaticResource DefaultGridSplitterStyle}" />
    <Style TargetType="TabControl"
           BasedOn="{StaticResource DefaultTabControlStyle}" />
    <Style TargetType="TabItem"
           BasedOn="{StaticResource DefaultTabItemStyle}" />
    <Style TargetType="TreeView"
           BasedOn="{StaticResource DefaultTreeViewStyle}" />
    <Style TargetType="TreeViewItem"
           BasedOn="{StaticResource DefaultTreeViewItemStyle}" />

</ResourceDictionary>